Permalink
Browse files

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

…ailable"

This reverts commit 0859d9d.

Fixes #3978
  • Loading branch information...
bep committed Oct 17, 2017
1 parent 45e0908 commit 5109ed520f2ddde815d50e7b31acbbfc57ce7719
Showing with 2 additions and 2 deletions.
  1. +2 −2 tpl/tplimpl/template_embedded.go
@@ -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 }}

0 comments on commit 5109ed5

Please sign in to comment.