hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

sitemap.xml (998B)

    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.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>