{{ range .Site.RegularPages }} {{ if (eq .IsPage true) }} {{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }} {{ .Permalink }} {{ if (eq .Section "entry") }}{{- $banner_fn := .Params.Banner | default (print .File.BaseFileName ".png") -}} {{- $fn := printf "/images/banners/%s" $banner_fn -}}{{- $banner := resources.Get $fn -}} {{ with $banner }}{{- $thumb := .Fit "824x306 jpg" | resources.Copy (printf "%s.jpg" $fn) -}}{{ $thumb.Permalink }}{{ end }} {{ else if (eq .Section "game") }} {{- $fn := printf "/images/game/icons/%s.png" .File.BaseFileName -}}{{- $icon := resources.Get $fn -}} {{ with $icon }}{{- $thumb := .Fill "48x48 jpg" | resources.Copy (printf "%s.jpg" $fn) -}}{{ $thumb.Permalink }}{{ end }} {{ end }} {{ if not .Lastmod.IsZero }}{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }} {{ with .Sitemap.ChangeFreq }}{{ . }}{{ end }} {{ if ge .Sitemap.Priority 0.0 }}{{ .Sitemap.Priority }}{{ end }} {{ end }} {{ end }}