This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2017-06-05 12:18:02 +00:00
|
|
|
{
|
|
|
|
{{- $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 }}
|
2017-06-11 12:38:58 +00:00
|
|
|
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}",
|
|
|
|
"gameName": "{{ $game.Title | plainify }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
|
2017-06-05 12:18:02 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
}
|