source: main/waeup-hugo/themes/dimension/layouts/sitemap.xml

Last change on this file was 14926, checked in by Henrik Bettermann, 7 years ago
File size: 537 bytes
Line 
1<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
2{{ $baseURL := .Site.BaseURL }}
3  {{ range sort .Data.Pages }}
4  <url>
5    <loc>{{ $baseURL }}{{ .LanguagePrefix }}/#{{ .File.TranslationBaseName }}</loc>{{ if not .Lastmod.IsZero }}
6    <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
7    <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
8    <priority>{{ .Sitemap.Priority }}</priority>{{ end }}
9  </url>
10  {{ end }}
11</urlset>
Note: See TracBrowser for help on using the repository browser.