File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ {{ printf "<?xml version =\" 1.0\" encoding =\" utf-8\" standalone =\" yes\" ?>" | safeHTML }}
2+ <urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9"
3+ xmlns : xhtml =" http://www.w3.org/1999/xhtml" >
4+ {{ range .Data.Pages }}
5+ {{- if and (not (in .RelPermalink "docs-v")) (.Permalink) -}}
6+ <url >
7+ <loc >{{ .Permalink }}</loc >{{ if not .Lastmod.IsZero }}
8+ <lastmod >{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod >{{ end }}{{ with .Sitemap.ChangeFreq }}
9+ <changefreq >{{ . }}</changefreq >{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
10+ <priority >{{ .Sitemap.Priority }}</priority >{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
11+ <xhtml : link
12+ rel =" alternate"
13+ hreflang =" {{ .Language.Lang }}"
14+ href =" {{ .Permalink }}"
15+ />{{ end }}
16+ <xhtml : link
17+ rel =" alternate"
18+ hreflang =" {{ .Language.Lang }}"
19+ href =" {{ .Permalink }}"
20+ />{{ end }}
21+ </url >
22+ {{- end -}}
23+ {{ end }}
24+ </urlset >
You can’t perform that action at this time.
0 commit comments