2017-06-04 21:52:48 +02:00
|
|
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
2017-02-26 22:24:53 +01:00
|
|
|
|
{{ range .Data.Pages }}
|
2017-06-04 21:52:48 +02:00
|
|
|
|
{{ if (eq .IsPage true) }}
|
|
|
|
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
2017-02-26 22:24:53 +01:00
|
|
|
|
<url>
|
2017-06-04 21:52:48 +02:00
|
|
|
|
|
|
|
|
|
<loc>{{ .Permalink }}</loc>
|
|
|
|
|
|
|
|
|
|
{{ if (eq .Section "entry") }}
|
|
|
|
|
<image:image>
|
|
|
|
|
<image:loc>{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}</image:loc>
|
|
|
|
|
</image:image>
|
|
|
|
|
{{ else if (eq .Section "game") }}
|
|
|
|
|
<image:image>
|
2017-06-04 22:09:47 +02:00
|
|
|
|
<image:loc>{{ .Site.BaseURL }}images/game/icons/{{ .File.BaseFileName }}.png</image:loc>
|
2017-06-04 21:52:48 +02:00
|
|
|
|
</image:image>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if not .Lastmod.IsZero }}<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}
|
|
|
|
|
{{ with .Sitemap.ChangeFreq }}<changefreq>{{ . }}</changefreq>{{ end }}
|
|
|
|
|
{{ if ge .Sitemap.Priority 0.0 }}<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
2017-02-26 22:24:53 +01:00
|
|
|
|
</url>
|
|
|
|
|
{{ end }}
|
2017-06-04 21:52:48 +02:00
|
|
|
|
{{ end }}
|
2017-02-26 22:24:53 +01:00
|
|
|
|
</urlset>
|