citra-web/site/themes/citra-bs-theme/layouts/game/list.json
2017-06-05 08:18:02 -04:00

12 lines
532 B
JSON

{
{{- $lenGames := sub (len .Data.Pages) 1 }}
{{- range $index, $element := .Data.Pages }}
{{- $game := . }}
{{- $gameIndex := $index }}
{{- $lenRegions := sub (len .Params.releases) 1 }}
{{- range $regionIndex, $element := .Params.releases }}
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}", "gameName": "{{ $game.Title | plainify }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
{{- end }}
{{- end }}
}