2025-01-04 20:19:12 +00:00
|
|
|
{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }}
|
|
|
|
{{ range ( sort $.Site.Data.games.current "Date Started" "desc" ) }}
|
2025-01-12 14:52:54 +00:00
|
|
|
<tr>
|
|
|
|
<td>TODO</td>
|
|
|
|
<td>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
|
2025-01-12 14:52:54 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ .Platforms }}</td>
|
|
|
|
<td>{{ index . "Date Released" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- if index . "Date Started" -}}
|
|
|
|
Since
|
|
|
|
{{ time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
|
|
|
{{- else -}}
|
|
|
|
Unknown
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
|
|
|
<tr>
|
2025-01-12 14:52:54 +00:00
|
|
|
<td colspan="6"><h3>Diary</h3></td>
|
2025-01-04 20:19:12 +00:00
|
|
|
</tr>
|
|
|
|
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "!=" "" ) "Date Finished" "desc" ) }}
|
2025-01-12 14:52:54 +00:00
|
|
|
<tr>
|
|
|
|
<td>TODO</td>
|
|
|
|
<td>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
|
2025-01-12 14:52:54 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ .Platforms }}</td>
|
|
|
|
<td>{{ index . "Date Released" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- with index . "Level of Completion" }}
|
|
|
|
{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{- if index . "Date Started" -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
|
|
|
{{- else -}}
|
|
|
|
Unknown
|
|
|
|
{{- end -}}–{{- if index . "Date Finished" -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
|
|
|
|
{{- else -}}
|
|
|
|
Unknown
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{ end }}
|
|
|
|
<tr>
|
2025-01-12 14:52:54 +00:00
|
|
|
<td colspan="6"><h3>Assorted</h3></td>
|
2025-01-04 20:19:12 +00:00
|
|
|
</tr>
|
|
|
|
{{ range ( sort ( where $.Site.Data.games.log "Date Finished" "" ) "Title" "asc" ) }}
|
2025-01-12 14:52:54 +00:00
|
|
|
<tr>
|
|
|
|
<td>TODO</td>
|
|
|
|
<td>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
|
2025-01-12 14:52:54 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ .Platforms }}</td>
|
|
|
|
<td>{{ index . "Date Released" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- with index . "Level of Completion" }}
|
|
|
|
{{ . }}
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{- if index . "Date Started" -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Started" ) -}}
|
|
|
|
{{- else -}}
|
|
|
|
Unknown
|
|
|
|
{{- end -}}–{{- if index . "Date Finished" -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Finished" ) -}}
|
|
|
|
{{- else -}}
|
|
|
|
Unknown
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
|
|
|
{{ range ( sort $.Site.Data.games.wishlist "Title" "asc" ) }}
|
2025-01-12 14:52:54 +00:00
|
|
|
<tr>
|
|
|
|
<td>TODO</td>
|
|
|
|
<td>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "games" "schemaType" "VideoGame" ) -}}
|
2025-01-12 14:52:54 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ .Platforms }}</td>
|
|
|
|
<td>{{ index . "Date Released" }}</td>
|
|
|
|
</tr>
|
2025-01-04 20:19:12 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|