Formatting and indentation

This commit is contained in:
BynariStar 2017-07-19 02:10:57 +03:00
parent 8ab6d0d2a5
commit e4f1063f77

View File

@ -54,11 +54,11 @@
{{ range .Pages }}
{{- $key := substr .Params.title 0 1 }}
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
{{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
<tr data-key="{{ $key }}">
<td class="hidden listing-metadata">
{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}
<span>{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
</td>
<td class="col-md-1 icon">
<img src="/images/game/icons/{{ .File.BaseFileName }}.png" />
@ -70,10 +70,10 @@
<img src="/images/game/types/{{ $type.key }}.png" title="{{ $type.name }}" />
</td>
<td class="col-md-1 compatibility">
<div class="square-icon" style="background-color: {{ $rating.color }}"></div> {{ $rating.name }}
<div class="square-icon" style="background-color: {{ $rating.color }}"></div> <span>{{ $rating.name }}</span>
</td>
<td class="col-md-3 date-tested">
{{ dateFormat "January 2, 2006" .Params.testcase_date }}
<span>{{ dateFormat "January 2, 2006" .Params.testcase_date }}</span>
</td>
</tr>
{{ end }}