fix: make sitemap.xml agnostic of trailing slash in baseURL

see #6
This commit is contained in:
olOwOlo 2017-09-17 21:50:30 +08:00
parent 176751a5d8
commit 8feb968a50
No known key found for this signature in database
GPG key ID: 456394B6E7A15EA6

View file

@ -1,4 +1,4 @@
{{ "<?" | safeHTML }}xml-stylesheet type="text/xsl" href="{{ .Site.BaseURL }}sitemap.xsl"{{ "?>" | safeHTML }}
{{ "<?" | safeHTML }}xml-stylesheet type="text/xsl" href="{{ "sitemap.xsl" | absURL }}"{{ "?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
<url>