Some checks failed
Deploy / deploy (push) Failing after 5s
site.Language.Locale and .Language.Label were removed from Hugo's template API in 0.123 / 0.124. The theme already uses the new names; only our overrides in layouts/ still referenced the old ones. - layouts/_default/baseof.html: site.Language.Locale -> site.LanguageCode - layouts/_default/sitemap.xml: .Language.Label -> .Language.LanguageCode (hreflang expects a BCP47 code, not a display name) - layouts/partials/language-switcher.html: .Language.Label -> .Language.LanguageName (display name for the switcher UI) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
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 where .Data.Pages "Params.private" "!=" true }}
|
|
{{- if .Permalink -}}
|
|
<url>
|
|
<loc>{{ .Permalink }}</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 }}{{ if .IsTranslated }}{{ range .Translations }}
|
|
<xhtml:link
|
|
rel="alternate"
|
|
hreflang="{{ .Language.LanguageCode }}"
|
|
href="{{ .Permalink }}"
|
|
/>{{ end }}
|
|
<xhtml:link
|
|
rel="alternate"
|
|
hreflang="{{ .Language.LanguageCode }}"
|
|
href="{{ .Permalink }}"
|
|
/>{{ end }}
|
|
</url>
|
|
{{- end -}}
|
|
{{ end }}
|
|
</urlset>
|