Revert "tplimpl: Output xmlns:xhtml only if there are translations available"
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 17 Oct 2017 18:56:50 +0000 (20:56 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 17 Oct 2017 18:56:50 +0000 (20:56 +0200)
This reverts commit 0859d9dfe647db3b8a192da38ad7efb5480a29a1.

Fixes #3978

tpl/tplimpl/template_embedded.go

index dfabcbe11950524fd19fffabba87fa505a2c39ae..dd3254560462f4e66c4cb377a111284b11ef88a8 100644 (file)
@@ -87,8 +87,8 @@ func (t *templateHandler) embedTemplates() {
   </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 }}