Corrected build errors, modified metadata icon for games to use icon instead of boxart.
This commit is contained in:
parent
3e6d2218db
commit
a644cc899e
|
@ -23,6 +23,7 @@
|
||||||
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" />
|
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}" />
|
||||||
|
|
||||||
{{ if (eq .Section "game") }}
|
{{ if (eq .Section "game") }}
|
||||||
|
{{ $rating := index .Site.Data.compatibility ( string .Params.compatibility | default "0" ) }}
|
||||||
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
|
||||||
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}">
|
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
{{ if (eq .Section "entry") }}
|
{{ 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/icons/{{ .File.BaseFileName }}.png" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
|
||||||
{{ range .Params.tags }}
|
{{ range .Params.tags }}
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Game Icon</td>
|
<td>Game Icon</td>
|
||||||
<td><img class="img-responsive" src="{{ .Site.BaseURL }}images/game/icons/{{ default (print .File.BaseFileName ".png") }}" /></td>
|
<td><img class="img-responsive" src="{{ .Site.BaseURL }}images/game/icons/{{ .File.BaseFileName }}.png" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Title IDs</td>
|
<td>Title IDs</td>
|
||||||
|
|
Reference in New Issue