github.com/wfusion/gofusion@v1.1.14/common/infra/watermill/docs/layouts/_default/sitemap.xml (about) 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 not ( and (in .Permalink "src-link")) }} 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="{{ .Lang }}" 14 href="{{ .Permalink }}" 15 />{{ end }} 16 <xhtml:link 17 rel="alternate" 18 hreflang="{{ .Lang }}" 19 href="{{ .Permalink }}" 20 />{{ end }} 21 </url> 22 {{ end }} 23 {{ end }} 24 </urlset>