diff --git a/content/sitemap.md b/content/sitemap.md deleted file mode 100644 index c387d75ce9..0000000000 --- a/content/sitemap.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -title: Digital.gov Sitemap -redirectto: /sitemap.xml ---- diff --git a/themes/digital.gov/layouts/_default/sitemap.xml b/themes/digital.gov/layouts/_default/sitemap.xml new file mode 100644 index 0000000000..5a4f8613d4 --- /dev/null +++ b/themes/digital.gov/layouts/_default/sitemap.xml @@ -0,0 +1,10 @@ + + {{ range .Data.Pages }} + + https://digital.gov{{ .Permalink | relURL }}{{ 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 }} + + {{ end }} +