Blog/layouts/_default/sitemap.xml
Vezpi 805d834063
All checks were successful
Blog Deployment / check-rebuild (push) Successful in 5s
Blog Deployment / build (push) Has been skipped
Blog Deployment / deploy-staging (push) Successful in 10s
Blog Deployment / test-staging (push) Successful in 2s
Blog Deployment / merge (push) Successful in 7s
Blog Deployment / deploy-production (push) Successful in 9s
Blog Deployment / test-production (push) Successful in 3s
Blog Deployment / clean (push) Has been skipped
feat: enhance sitemap by excluding some pages
2025-06-05 07:20:08 +00:00

17 lines
624 B
XML

{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Pages }}
{{ if not (in .Site.Params.excludedFromSitemap .Data.Plural) }}
<url>
<loc>{{ .Permalink }}</loc>
{{ if not .Lastmod.IsZero }}
<lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</lastmod>
{{ end }}
{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>
{{ end }}
</url>
{{ end }}
{{ end }}
</urlset>