From cbe4339a5ffcfc0d788f21aacc6bbd727e979bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 21 May 2026 21:36:43 +0200 Subject: [PATCH] tpl: Simplify sitemap template The benefit of my performance motivated construct in 6475d308ec8ca17ad8950b3df3d01750c70acd48 was most likely minimal and not worth the loss of clarity. See #14912 --- tpl/tplimpl/embedded/templates/sitemap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/tplimpl/embedded/templates/sitemap.xml b/tpl/tplimpl/embedded/templates/sitemap.xml index bdedcacb1..2e873abe7 100644 --- a/tpl/tplimpl/embedded/templates/sitemap.xml +++ b/tpl/tplimpl/embedded/templates/sitemap.xml @@ -8,7 +8,7 @@ {{ .Permalink }}{{ if not .Lastmod.IsZero }} {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ $allTranslations := .AllTranslations }}{{ if gt ($allTranslations | len) 1 }}{{ range $allTranslations }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .AllTranslations }}