diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-17 21:50:30 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-17 21:50:30 +0800 |
commit | 8feb968a50affe0a8d49b2e7d047715d3bb5069f (patch) | |
tree | a189309b5cf1e5f5464b717c3f3f9a6aa362fd42 /layouts | |
parent | 176751a5d8154e066c0b4c56a5f812a1ac01b72e (diff) |
fix: make sitemap.xml agnostic of trailing slash in baseURL
see #6
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/sitemap.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml index b3fe471..19dd68d 100644 --- a/layouts/sitemap.xml +++ b/layouts/sitemap.xml @@ -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> |