Revert "tplimpl: Output xmlns:xhtml only if there are translations available"

This reverts commit 0859d9dfe6.

Fixes #3978
This commit is contained in:
Bjørn Erik Pedersen 2017-10-17 20:56:50 +02:00
parent 45e0908b86
commit 5109ed520f
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -87,8 +87,8 @@ func (t *templateHandler) embedTemplates() {
</channel> </channel>
</rss>`) </rss>`)
t.addInternalTemplate("_default", "sitemap.xml", `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"{{ if .IsTranslated }} t.addInternalTemplate("_default", "sitemap.xml", `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"{{ end }}> xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Data.Pages }} {{ range .Data.Pages }}
<url> <url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }} <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}