ref: 5109ed520f2ddde815d50e7b31acbbfc57ce7719
parent: 45e0908b86f3615cc03a4fe81b7cd9629be0f468
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Oct 17 16:56:50 EDT 2017
Revert "tplimpl: Output xmlns:xhtml only if there are translations available" This reverts commit 0859d9dfe647db3b8a192da38ad7efb5480a29a1. Fixes #3978
--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -87,8 +87,8 @@
</channel>
</rss>`)
- t.addInternalTemplate("_default", "sitemap.xml", `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"{{ if .IsTranslated }}
- xmlns:xhtml="http://www.w3.org/1999/xhtml"{{ end }}>
+ t.addInternalTemplate("_default", "sitemap.xml", `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range .Data.Pages }}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}