2022-12-17 18:41:44 +00:00
|
|
|
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
2023-02-28 22:03:09 +00:00
|
|
|
<tr>
|
|
|
|
<td colspan=4><h3>Diary</h3></td>
|
|
|
|
</tr>
|
|
|
|
{{ range ( sort ( where $.Site.Data.films.log "Date Watched" "!=" "" ) "Date Watched" "desc" ) }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
|
|
|
<td>
|
2023-10-05 18:27:13 +00:00
|
|
|
{{- partial "cite" ( dict "c" . "schemaType" "Movie" ) -}}
|
2023-02-28 22:03:09 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ index . "Release Year" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- if ( index . "Date Watched" ) -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
|
|
|
{{- if .Rewatch }} ↻{{ end -}}
|
|
|
|
{{- else -}}
|
|
|
|
n/a
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
<tr>
|
|
|
|
<td colspan=4><h3>Assorted</h3></td>
|
|
|
|
</tr>
|
|
|
|
{{ range ( sort ( where $.Site.Data.films.log "Date Watched" "" ) "Title" "asc" ) }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
|
|
|
<td>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
|
|
|
{{ range . }}
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|
|
|
|
<cite class="film">{{ .Title }}</cite>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
<td>{{ index . "Release Year" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- if ( index . "Date Watched" ) -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
|
|
|
{{- if .Rewatch }} ↻{{ end -}}
|
|
|
|
{{- else -}}
|
|
|
|
n/a
|
2022-12-17 18:41:44 +00:00
|
|
|
{{- end -}}
|
2023-02-28 22:03:09 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
|
|
|
{{ range ( sort $.Site.Data.films.wishlist "Title" "asc" ) }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ time.Format "Jan 2, 2006" ( index . "Date Added" ) }}</td>
|
|
|
|
<td>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
|
|
|
{{ range . }}
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|
|
|
|
<cite class="film">{{ .Title }}</cite>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "films" ) "Title" .Title ) -}}
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
<td>{{ index . "Release Year" }}</td>
|
|
|
|
<td>
|
|
|
|
{{- if ( index . "Date Watched" ) -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
|
|
|
{{- if .Rewatch }} ↻{{ end -}}
|
|
|
|
{{- else -}}
|
|
|
|
n/a
|
2022-12-17 18:41:44 +00:00
|
|
|
{{- end -}}
|
2023-02-28 22:03:09 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2022-12-17 18:41:44 +00:00
|
|
|
{{ end }}
|