Updated GameDB theme.

This commit is contained in:
chris062689@gmail.com 2018-10-16 20:33:45 -04:00
parent b727987180
commit e7d4e9eb67
2 changed files with 70 additions and 69 deletions

View file

@ -3,7 +3,7 @@
<div class="section pb-xs">
<h1 class="title">Game Compatibility List</h1>
<p class="content">
The Citra Emulator compatibility list contains all the games we tested, sorted by how well they work on the emulator.
The compatibility list contains all the games we tested, sorted by how well they work on the emulator.
</p>
<table class="table is-fullwidth">
<tbody>
@ -44,7 +44,7 @@
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
</td>
<td>
<img src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
<img src="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" style="width: 48px; height: 48px;" />
</td>
<td data-title="{{ strings.TrimPrefix "The " .Params.title }}">
<a href="{{ .Permalink }}">{{ .Params.title }}</a>
@ -61,7 +61,6 @@
</tbody>
</table>
</div>
</div>
{{ end }}
{{ define "scripts" }}
@ -76,21 +75,21 @@
xAxis: { categories: [''] },
yAxis: { min: 0, max: {{ len .Data.Pages }}, title: { text: '' } },
legend: { enabled: false },
plotOptions: { series: {
plotOptions: {
series: {
stacking: 'normal',
cursor: 'pointer',
events: {
click: null
}
} },
}
},
series: [
{{- $dataPages := .Data.Pages }}
{{- range.Site.Data.compatibility }}
{{- $dataPagesFiltered := where $dataPages ".Params.compatibility".key }}
{ "name": "{{ .name }}", "data": [{{ len $dataPagesFiltered }}] },
{{- end }}
]
});
{{- end }}]});
}, false);
</script>
{{ end }}

View file

@ -1,10 +1,12 @@
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
{{ if .IsPage }}
{{ $rating := index .Site.Data.compatibility .Params.compatibility }}
<meta property="og:description" content="{{ $rating.name }} - {{ $rating.description }}" />
<meta name="description" content="{{ $rating.name }} - {{ $rating.description }}" />
<meta property="og:type" content="article" />
<meta property="og:image" content="{{ .Site.BaseURL }}/images/game/icons/{{ .File.BaseFileName }}.png" />
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
{{- range .Params.tags }}
{{ range .Params.tags }}
<meta property="og:article:tag" content="{{ . }}" />
{{- end }}
{{ end }}
{{ end }}