Skip to content

Commit

Permalink
Revert "tplimpl: Output xmlns:xhtml only if there are translations av…
Browse files Browse the repository at this point in the history
…ailable"

This reverts commit 0859d9d.

Fixes #3978
  • Loading branch information
bep committed Oct 17, 2017
1 parent 45e0908 commit 5109ed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpl/tplimpl/template_embedded.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 5109ed5

Please sign in to comment.