Updated Sitemap for better indexing from Google. Updated base page to not feature images on wiki pages.
This commit is contained in:
parent
05125dc26c
commit
ca1b4ea1f9
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
{{ if (eq .Section "entry") | or (eq .Section "wiki") | or (eq .Section "game") }}
|
{{ if (eq .Section "entry") | or (eq .Section "wiki") | or (eq .Section "game") }}
|
||||||
<meta property="og:type" content="article" />
|
<meta property="og:type" content="article" />
|
||||||
{{ if (eq .Section "entry") | or (eq .Section "wiki") }}
|
{{ if (eq .Section "entry") }}
|
||||||
<meta property="og:image" content="{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
|
<meta property="og:image" content="{{ .Site.BaseURL }}images/banners/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
|
||||||
{{ else if (eq .Section "game") }}
|
{{ else if (eq .Section "game") }}
|
||||||
<meta property="og:image" content="{{ .Site.BaseURL }}images/game/boxart/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
|
<meta property="og:image" content="{{ .Site.BaseURL }}images/game/boxart/{{ .Params.Banner | default (print .File.BaseFileName ".png") }}" />
|
||||||
|
|
|
@ -1,10 +1,29 @@
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
||||||
{{ range .Data.Pages }}
|
{{ range .Data.Pages }}
|
||||||
|
{{ if (eq .IsPage true) }}
|
||||||
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
|
||||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
<loc>{{ .Permalink }}</loc>
|
||||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
|
||||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
{{ if (eq .Section "game") }}
|
||||||
|
<description>{{ $rating.name }} - {{ $rating.description }}</description>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ 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/boxart/{{ .Params.Banner | default (print .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 }}
|
||||||
</url>
|
</url>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
Reference in New Issue