{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }} {{ .Scratch.Set "filterCol" "name" }} {{ .Scratch.Set "filterDir" "asc" }} {{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ .Scratch.Set "filterCol" "name" }} {{ .Scratch.Set "filterDir" "asc" }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ .Scratch.Set "filterCol" "name" }} {{ .Scratch.Set "filterDir" "asc" }} {{ end }} {{ range ( sort ( index $.Site.Data.games ( .Scratch.Get "listMode" ) ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }} {{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Name ) -}} {{ range . }} {{ end }} {{- end -}} {{ .name }} {{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Name ) -}} {{- end -}} {{ .release_date }} {{ end }}