This commit is contained in:
20
layouts/_default/baseof.html
Normal file
20
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ $.Site.LanguageCode | default "en" }}">
|
||||
{{ partial "html-head.html" . }}
|
||||
|
||||
<body class="has-navbar-fixed-top">
|
||||
<div id="footer-fix-body-wrapper">
|
||||
{{ block "header" . }}{{ partial "header.html" .}}{{ end }}
|
||||
<main>
|
||||
<div class="columns is-gapless is-centered is-mobile">
|
||||
<div class="column is-12 is-11-widescreen is-10-fullhd" style="max-width:80em;">
|
||||
<div class="content">
|
||||
{{ block "content" . }}{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
{{ block "footer" . }}{{ partial "site-footer.html" . }}{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
12
layouts/_default/list.html
Normal file
12
layouts/_default/list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "content" }}
|
||||
<div class="section">
|
||||
{{ if isset .Params "title" }}
|
||||
<h1 class="subtitle is-3 has-text-centered has-text-weight-normal">{{- title .Title -}}</h1>
|
||||
{{ end }}
|
||||
|
||||
{{- .Content -}}
|
||||
<div class="mt-6">
|
||||
{{- partial "pagelist-default.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
9
layouts/_default/single.html
Normal file
9
layouts/_default/single.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "content" }}
|
||||
<div class="section">
|
||||
{{ if isset .Params "title" }}
|
||||
<h1 class="subtitle is-3 has-text-centered has-text-weight-normal">{{- title .Title -}}</h1>
|
||||
<hr>
|
||||
{{ end }}
|
||||
{{- .Content -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
22
layouts/_default/sitemap.xml
Normal file
22
layouts/_default/sitemap.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{{ range .Data.Pages }}{{ if ne .Params.sitemapExclude true }}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="{{ .Lang }}"
|
||||
href="{{ .Permalink }}"
|
||||
/>{{ end }}
|
||||
<xhtml:link
|
||||
rel="alternate"
|
||||
hreflang="{{ .Lang }}"
|
||||
href="{{ .Permalink }}"
|
||||
/>{{ end }}
|
||||
</url>
|
||||
{{ end }}{{ end }}
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user