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
1 changed files with 2 additions and 1 deletions

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>