2023-02-17 20:22:09 +00:00
|
|
|
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
|
|
|
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
2023-02-18 00:13:50 +00:00
|
|
|
{{ .Scratch.Set "filterCol" "Date Watched" }}
|
2023-02-17 20:22:09 +00:00
|
|
|
{{ .Scratch.Set "filterDir" "desc" }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ range ( sort ( sort ( index $.Site.Data.tv ( .Scratch.Get "listMode" ) ) "Episode Title" "asc" ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<cite class="series">{{ index . "Series Title" }}</cite>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "tv" ) "Title" ( index . "Episode Title" ) ) -}}
|
|
|
|
{{ range . }}
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|
|
|
|
<cite class="episode">{{ index . "Episode Title" }}</cite>
|
|
|
|
<span class="episode-number">({{ index . "Episode Number" }})</span>
|
|
|
|
{{- with ( where ( where $.Site.Pages "Section" "tv" ) "Title" ( index . "Episode Title" ) ) -}}
|
|
|
|
</a>
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-02-18 00:13:50 +00:00
|
|
|
{{- if ( index . "Date Watched" ) -}}
|
|
|
|
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
2023-02-17 20:22:09 +00:00
|
|
|
{{- else -}}
|
|
|
|
n/a
|
|
|
|
{{- end -}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|