diff --git a/site/themes/citra-bs-theme/layouts/_default/baseof.html b/site/themes/citra-bs-theme/layouts/_default/baseof.html index 4b8815a..d8c7c71 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -23,7 +23,7 @@      {{ if (eq .Section "entry") | or (eq .Section "wiki") | or (eq .Section "game") }}    - {{ if (eq .Section "entry") | or (eq .Section "wiki") }} + {{ if (eq .Section "entry") }} {{ else if (eq .Section "game") }} diff --git a/site/themes/citra-bs-theme/layouts/sitemap.xml b/site/themes/citra-bs-theme/layouts/sitemap.xml index 3244e1a..7d14a30 100644 --- a/site/themes/citra-bs-theme/layouts/sitemap.xml +++ b/site/themes/citra-bs-theme/layouts/sitemap.xml @@ -1,10 +1,29 @@ - +   {{ range .Data.Pages }} + {{ if (eq .IsPage true) }} + {{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}    -        {{ .Permalink }}{{ 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 }} + + {{ .Permalink }} + + {{ if (eq .Section "game") }} + {{ $rating.name }} - {{ $rating.description }} + {{ end }} + + {{ if (eq .Section "entry") }} + + {{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }} + + {{ else if (eq .Section "game") }} + + {{ .Site.BaseURL }}images/game/boxart/{{ .Params.Banner | default (print .File.BaseFileName ".png") }} + + {{ 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 }}