Skip to content

Commit

Permalink
Merge pull request #7441 from GSA/nl-fix-sitemap
Browse files Browse the repository at this point in the history
Fix sitemap score for SEO
  • Loading branch information
ToniBonittoGSA authored Apr 3, 2024
2 parents 099c9b5 + 7783214 commit a7bf582
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 0 additions & 4 deletions content/sitemap.md

This file was deleted.

10 changes: 10 additions & 0 deletions themes/digital.gov/layouts/_default/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 a7bf582

Please sign in to comment.