Fixed runtime errors with game list.
This commit is contained in:
parent
8394ac59d9
commit
d0f5010f14
|
@ -50,14 +50,12 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="list">
|
<tbody class="list">
|
||||||
{{ range .Data.Pages.GroupByParam "section_id" }}
|
|
||||||
|
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
|
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
|
||||||
{{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
|
{{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
|
||||||
<tr data-key="{{ .Params.section_id }}">
|
<tr data-key="{{ .Params.section_id }}">
|
||||||
<td class="hidden listing-metadata">
|
<td class="hidden listing-metadata">
|
||||||
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-1 icon">
|
<td class="col-md-1 icon">
|
||||||
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" />
|
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" />
|
||||||
|
@ -72,11 +70,14 @@
|
||||||
<div class="square-icon" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
<div class="square-icon" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-md-3 date-tested" data-timestamp="{{ .Params.testcase_date }}">
|
<td class="col-md-3 date-tested" data-timestamp="{{ .Params.testcase_date }}">
|
||||||
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
{{ if .Params.testcase_date }}
|
||||||
|
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
|
||||||
|
{{ else }}
|
||||||
|
<span></span>
|
||||||
|
{{ end }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<ul class="pagination paginationBottom pull-left"></ul>
|
<ul class="pagination paginationBottom pull-left"></ul>
|
||||||
|
|
Reference in New Issue