fix: typo
All checks were successful
Blog Deployment / check-rebuild (push) Successful in 4s
Blog Deployment / build (push) Has been skipped
Blog Deployment / deploy-staging (push) Successful in 8s
Blog Deployment / test-staging (push) Successful in 2s
Blog Deployment / merge (push) Successful in 4s
Blog Deployment / deploy-production (push) Successful in 8s
Blog Deployment / test-production (push) Successful in 2s
Blog Deployment / clean (push) Has been skipped

This commit is contained in:
Vezpi 2025-06-05 07:40:11 +00:00
parent 182806bef8
commit 404b5cc34c

View File

@ -1,21 +1,20 @@
{{ 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">
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range $page := .Data.Pages }}
{{- $incldueURL := true -}}
{{- range $val := $.Site.Params.sitemapFilter -}}
{{- if (strings.Contains $page.Permalink $val ) -}}
{{- $incldueURL = false -}}
{{- end -}}
{{- $includeURL := true -}}
{{- range $val := $.Site.Params.sitemapFilter -}}
{{- if (in $page.Permalink $val) -}}
{{- $includeURL = false -}}
{{- end -}}
{{- end -}}
{{- if and .Permalink $incldueURL -}}
{{- if and $page.Permalink $includeURL -}}
<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.Lang }}" href="{{ .Permalink }}"/>{{ end }}
<loc>{{ $page.Permalink }}</loc>{{ if not $page.Lastmod.IsZero }}
<lastmod>{{ $page.Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</lastmod>{{ end }}{{ with $page.Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge $page.Sitemap.Priority 0.0 }}
<priority>{{ $page.Sitemap.Priority }}</priority>{{ end }}{{ if $page.IsTranslated }}{{ range $page.Translations }}
<xhtml:link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}"/>{{ end }}{{ end }}
</url>
{{- end -}}
{{ end }}
</urlset>
</urlset>