citra-emu
/
citra-web
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-web/site/themes/citra-bs-theme/layouts/sitemap.xml

26 lines
1.0 KiB
XML
Raw Normal View History

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
2017-02-26 21:24:53 +00:00
  {{ range .Data.Pages }}
{{ if (eq .IsPage true) }}
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
2017-02-26 21:24:53 +00:00
  <url>
<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>
<image:loc>{{ .Site.BaseURL }}images/game/icons/{{ .File.BaseFileName }}.png</image:loc>
</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 21:24:53 +00:00
  </url>
  {{ end }}
{{ end }}
2017-02-26 21:24:53 +00:00
</urlset>