mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 23:42:11 -05:00
Revert "tplimpl: Output xmlns:xhtml only if there are translations available"
This reverts commit 0859d9dfe6
.
Fixes #3978
This commit is contained in:
parent
45e0908b86
commit
5109ed520f
1 changed files with 2 additions and 2 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue