From c7423cc391d0e8ff9441598e05f12de4e95a6e07 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Fri, 23 Jun 2017 21:34:41 -0400 Subject: [PATCH] Modified the JSON listing to provide compatibility ratings. --- .../citra-bs-theme/layouts/game/list.json | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/site/themes/citra-bs-theme/layouts/game/list.json b/site/themes/citra-bs-theme/layouts/game/list.json index e73dbc1..75ca2ed 100644 --- a/site/themes/citra-bs-theme/layouts/game/list.json +++ b/site/themes/citra-bs-theme/layouts/game/list.json @@ -1,12 +1,11 @@ { - {{- $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 }} +{{- $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 }}", "compatibility": "{{ $game.Params.compatibility }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }} {{- end }} +{{- end }} }