From: Jamie Connolly Date: Tue, 3 Oct 2017 13:31:12 +0000 (+0100) Subject: tplimpl: Output xmlns:xhtml only if there are translations available X-Git-Tag: v0.30~25 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0859d9dfe647db3b8a192da38ad7efb5480a29a1;p=brevno-suite%2Fhugo tplimpl: Output xmlns:xhtml only if there are translations available --- diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go index dd325456..dfabcbe1 100644 --- a/tpl/tplimpl/template_embedded.go +++ b/tpl/tplimpl/template_embedded.go @@ -87,8 +87,8 @@ func (t *templateHandler) embedTemplates() { `) - t.addInternalTemplate("_default", "sitemap.xml", ` + t.addInternalTemplate("_default", "sitemap.xml", ` {{ range .Data.Pages }} {{ .Permalink }}{{ if not .Lastmod.IsZero }}