diff --git a/content/404.md b/content/404.md index 403a3da..5ff1862 100644 --- a/content/404.md +++ b/content/404.md @@ -4,6 +4,7 @@ outputs: url: "/404.html" title: "Error 404 (Not Found)" layout: "404" +private: true --- You have requested a page that was not found on this server. diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml new file mode 100644 index 0000000..6d59e48 --- /dev/null +++ b/layouts/_default/sitemap.xml @@ -0,0 +1,13 @@ +{{- printf `` | safeHTML }} + + {{- range .Data.Pages }} + {{- if not .Params.private -}} + + {{ .Permalink }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }} + + {{- end -}} + {{- end }} +