Modified the JSON listing to provide compatibility ratings.
This commit is contained in:
parent
7de0935ac7
commit
c7423cc391
|
@ -1,12 +1,11 @@
|
||||||
{
|
{
|
||||||
{{- $lenGames := sub (len .Data.Pages) 1 }}
|
{{- $lenGames := sub (len .Data.Pages) 1 }}
|
||||||
{{- range $index, $element := .Data.Pages }}
|
{{- range $index, $element := .Data.Pages }}
|
||||||
{{- $game := . }}
|
{{- $game := . }}
|
||||||
{{- $gameIndex := $index }}
|
{{- $gameIndex := $index }}
|
||||||
{{- $lenRegions := sub (len .Params.releases) 1 }}
|
{{- $lenRegions := sub (len .Params.releases) 1 }}
|
||||||
{{- range $regionIndex, $element := .Params.releases }}
|
{{- range $regionIndex, $element := .Params.releases }}
|
||||||
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}",
|
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}", "compatibility": "{{ $game.Params.compatibility }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
|
||||||
"gameName": "{{ $game.Title | plainify }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue