From 6561771c435f9d9bed1589b5ed13d17aee0b7873 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 11 Dec 2022 20:46:58 +0100 Subject: feat: Add frontpage --- code/frontpage/layouts/sitemap.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 code/frontpage/layouts/sitemap.xml (limited to 'code/frontpage/layouts/sitemap.xml') diff --git a/code/frontpage/layouts/sitemap.xml b/code/frontpage/layouts/sitemap.xml new file mode 100644 index 0000000..a3fcf7a --- /dev/null +++ b/code/frontpage/layouts/sitemap.xml @@ -0,0 +1,22 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }}{{ if ne .Params.sitemap_exclude true }} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + + {{ end }}{{ end }} + -- cgit v1.3