Merge pull request #20683 from dvdksn/fix-xsl-stylesheet-filename

fix: incorrect sitemap stylesheet filename
This commit is contained in:
David Karlsson 2024-08-21 14:47:29 +02:00 committed by GitHub
commit b766e1504f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
{{ printf "<?xml-stylesheet type=\"text/xsl\" href=\"%s\"?>" (urls.AbsURL "sitemap.xml") | safeHTML }}
{{ printf "<?xml-stylesheet type=\"text/xsl\" href=\"%s\"?>" (urls.AbsURL "sitemap.xsl") | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{- range where site.Pages "Params.sitemap" "!=" false }}
{{- if ne .Params.sitemap false }}