33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
|
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
|
{{ .Scratch.Set "filterCol" "Watch Date" }}
|
|
{{ .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>
|
|
{{- if ( index . "Watch Date" ) -}}
|
|
{{- time.Format "Jan 2, 2006" ( index . "Watch Date" ) -}}
|
|
{{- else -}}
|
|
n/a
|
|
{{- end -}}
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ end }}
|