27 lines
937 B
HTML
27 lines
937 B
HTML
{{ 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" ) ) }}
|
|
<tr>
|
|
<td>
|
|
{{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Name ) -}}
|
|
{{ range . }}
|
|
<a href="{{ .RelPermalink }}">
|
|
{{ end }}
|
|
{{- end -}}
|
|
<cite class="game">{{ .name }}</cite>
|
|
{{- with ( where ( where $.Site.Pages "Section" "games" ) "Title" .Name ) -}}
|
|
</a>
|
|
{{- end -}}
|
|
</td>
|
|
<td>{{ .release_date }}</td>
|
|
</tr>
|
|
{{ end }}
|