From 900bb5e845c3ad44defbd427cae3d44a4a43321f Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sat, 25 Feb 2023 13:15:44 +0100 Subject: feat: Initial commit --- 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