github.com/neohugo/neohugo@v0.123.8/tpl/tplimpl/embedded/templates/_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 .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.LanguageCode }}"
    14                  href="{{ .Permalink }}"
    15                  />{{ end }}
    16      <xhtml:link
    17                  rel="alternate"
    18                  hreflang="{{ .Language.LanguageCode }}"
    19                  href="{{ .Permalink }}"
    20                  />{{ end }}
    21    </url>
    22      {{- end -}}
    23    {{ end }}
    24  </urlset>