From 568553394d0a8b34668a75c9839a0f1f426469b2 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 6 Oct 2019 21:10:46 +0200 Subject: theme: Switch to docsy theme --- themes/docsy/userguide/layouts/sitemap.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 themes/docsy/userguide/layouts/sitemap.xml (limited to 'themes/docsy/userguide/layouts/sitemap.xml') diff --git a/themes/docsy/userguide/layouts/sitemap.xml b/themes/docsy/userguide/layouts/sitemap.xml new file mode 100644 index 0000000..6b62f7e --- /dev/null +++ b/themes/docsy/userguide/layouts/sitemap.xml @@ -0,0 +1,22 @@ +{{ printf "" | safeHTML }} + + {{ range .Data.Pages }} + + https://www.docsy.dev{{ .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 }} + -- cgit v1.2.3