{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ .Scratch.Set "filterCol" "Date Watched" }} {{ .Scratch.Set "filterDir" "desc" }} {{ end }} {{ range ( sort ( index $.Site.Data.tv ( .Scratch.Get "listMode" ) ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }} {{- partial "cite" ( dict "c" . "schemaType" "TVSeries" "title" ( index . "Series Title" ) ) -}} {{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}} ({{ index . "Episode Number" }}) {{- if ( index . "Date Watched" ) -}} {{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}} {{- if .Rewatch }} ↻{{ end -}} {{- else -}} n/a {{- end -}} {{ end }} {{ end }}