{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}

Diary

{{ range ( sort ( where $.Site.Data.films.log "date_finished" "!=" "" ) "date_finished" "desc" ) }} {{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- with .comments -}}

Comments: {{ . }}

{{- end -}} {{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- if .date_finished -}} {{- time.Format "Jan 2, 2006" .date_finished -}} {{- if .is_repeat }} ↻{{ end -}} {{- else -}} n/a {{- end -}} {{ end }}

Assorted

{{ range ( sort ( where $.Site.Data.films.log "date_finished" "" ) "title" "asc" ) }} {{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- with .comments -}}

Comments: {{ . }}

{{- end -}} {{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- if .date_finished -}} {{- time.Format "Jan 2, 2006" .date_finished -}} {{- if .is_repeat }} ↻{{ end -}} {{- else -}} n/a {{- end -}} {{ end }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ range ( sort $.Site.Data.films.wishlist "title" "asc" ) }} {{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}} {{- with .comments -}}

Comments: {{ . }}

{{- end -}} {{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }} {{- if .date_finished -}} {{- time.Format "Jan 2, 2006" .date_finished -}} {{- if .is_repeat }} ↻{{ end -}} {{- else -}} n/a {{- end -}} {{ end }} {{ end }}