fix: tv episode ordering
This commit is contained in:
parent
53cc987467
commit
b9d7e65451
1 changed files with 3 additions and 2 deletions
|
@ -4,10 +4,10 @@
|
||||||
{{ .Scratch.Set "filterDir" "desc" }}
|
{{ .Scratch.Set "filterDir" "desc" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range ( sort ( sort ( index $.Site.Data.tv ( .Scratch.Get "listMode" ) ) "Episode Title" "asc" ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
|
{{ range ( sort ( index $.Site.Data.tv ( .Scratch.Get "listMode" ) ) ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{- partial "cite" ( dict "c" . "schemaType" "Book" "title" ( index . "Series Title" ) ) -}}
|
{{- partial "cite" ( dict "c" . "schemaType" "TVSeries" "title" ( index . "Series Title" ) ) -}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
{{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
||||||
|
@ -16,6 +16,7 @@
|
||||||
<td>
|
<td>
|
||||||
{{- if ( index . "Date Watched" ) -}}
|
{{- if ( index . "Date Watched" ) -}}
|
||||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
||||||
|
{{- if .Rewatch }} ↻{{ end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
n/a
|
n/a
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue