mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 13:55:37 +00:00
26 lines
1.4 KiB
XML
26 lines
1.4 KiB
XML
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
|
{{ range .Site.RegularPages }}
|
|
{{ if (eq .IsPage true) }}
|
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
|
<url>
|
|
|
|
<loc>{{ .Permalink }}</loc>
|
|
|
|
{{ if (eq .Section "entry") }}{{- $banner_fn := .Params.Banner | default (print .File.BaseFileName ".png") -}}
|
|
<image:image>{{- $fn := printf "/images/banners/%s" $banner_fn -}}{{- $banner := resources.Get $fn -}}
|
|
{{ with $banner }}<image:loc>{{- $thumb := .Fit "824x306 jpg" | resources.Copy (printf "%s.jpg" $fn) -}}{{ $thumb.Permalink }}</image:loc>{{ end }}
|
|
</image:image>
|
|
{{ else if (eq .Section "game") }}
|
|
<image:image>{{- $fn := printf "/images/game/icons/%s.png" .File.BaseFileName -}}{{- $icon := resources.Get $fn -}}
|
|
{{ with $icon }}<image:loc>{{- $thumb := .Fill "48x48 jpg" | resources.Copy (printf "%s.jpg" $fn) -}}{{ $thumb.Permalink }}</image:loc>{{ end }}
|
|
</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 }}
|
|
</url>
|
|
{{ end }}
|
|
{{ end }}
|
|
</urlset>
|