SEO
Deploy Hugo Site / deploy (push) Canceled after 0s

This commit is contained in:
lucashahmann committed 2026-10-30 16:45:29 +01:00
1 parent 36a73f6b63
commit a07b8be38a
8 files changed
+93 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
{{- /*
Eigene Sitemap: Die Einzelseiten unter /shows/ sind noindex-Weiterleitungen
auf /shows/ und gehören nicht hinein. lastmod in der Zukunft (kommt von
kommenden Shows) wird weggelassen.
*/ -}}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{- range .Pages }}
{{- if and .Permalink (not (and (eq .Section "shows") (eq .Kind "page"))) }}
<url>
<loc>{{ .Permalink }}</loc>
{{- if and (not .Lastmod.IsZero) (le .Lastmod now) }}
<lastmod>{{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}</lastmod>
{{- end }}
</url>
{{- end }}
{{- end }}
</urlset>