Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6475d30 commit cbe4339Copy full SHA for cbe4339
1 file changed
tpl/tplimpl/embedded/templates/sitemap.xml
@@ -8,7 +8,7 @@
8
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
9
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
10
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
11
- <priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ $allTranslations := .AllTranslations }}{{ if gt ($allTranslations | len) 1 }}{{ range $allTranslations }}
+ <priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .AllTranslations }}
12
<xhtml:link
13
rel="alternate"
14
hreflang="{{ .Language.Locale }}"
0 commit comments