Compare commits

...

2 commits

Author SHA1 Message Date
Kolappan N c3495adfe8
Merge b6a507a3df into 54a8f0ce21 2024-03-27 08:28:17 -07:00
Kolappan N b6a507a3df tpl/tplimpl: Allow content exclusion in sitemap.xml
Closes #653
2024-03-19 23:47:25 +05:30

View file

@ -1,7 +1,7 @@
{{ 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 .Data.Pages }}
{{ range where .Data.Pages "Params.sitemap.exclude" "ne" true }}
{{- if .Permalink -}}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}