Corrected build errors for data-key alphanumeric list.

This commit is contained in:
chris062689 2017-07-09 19:47:13 -04:00
parent fa6fc6375f
commit 221268d388

View File

@ -53,9 +53,10 @@
{{ range .Data.Pages.GroupByParam "section_id" }}
{{ range .Pages }}
{{- $key := substr .Params.title 0 1 }}
{{- $rating := index .Site.Data.compatibility .Params.compatibility }}
{{- $type := index .Site.Data.gameTypes (.Params.game_type | default "3ds") }}
<tr data-key="{{ .Key }}">
<tr data-key="{{ $key }}">
<td class="hidden listing-metadata">
{{ .Params.title }} {{ $type.name }} {{ $rating.name }} {{ dateFormat "January 2, 2006" .Params.testcase_date }}
</td>