From cd8447404c66a519a20cc3ce9f6fa23ba964fe37 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 15 May 2022 10:00:19 +0900 Subject: remove time field from sitemap's --- themes/mypaper/layouts/sitemap.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 themes/mypaper/layouts/sitemap.xml (limited to 'themes/mypaper/layouts') diff --git a/themes/mypaper/layouts/sitemap.xml b/themes/mypaper/layouts/sitemap.xml new file mode 100644 index 0000000..74851b5 --- /dev/null +++ b/themes/mypaper/layouts/sitemap.xml @@ -0,0 +1,12 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }} + {{- if .Permalink -}} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02-07:00" ) }}{{ end }} + + {{- end -}} + {{ end }} + -- cgit v1.2.3-70-g09d2