Skip to content

Commit

Permalink
Moved sitemap.xml to /layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-mon1 committed Mar 26, 2024
1 parent 0dacd1c commit 8a85975
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions themes/digital.gov/layouts/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
<url>
<loc>https://digital.gov{{ .Permalink | relURL }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
</url>
{{ end }}
</urlset>

0 comments on commit 8a85975

Please sign in to comment.