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" }}
|
||||
{{ 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>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "Book" "title" ( index . "Series Title" ) ) -}}
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "TVSeries" "title" ( index . "Series Title" ) ) -}}
|
||||
</td>
|
||||
<td>
|
||||
{{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}}
|
||||
|
@ -16,6 +16,7 @@
|
|||
<td>
|
||||
{{- if ( index . "Date Watched" ) -}}
|
||||
{{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}}
|
||||
{{- if .Rewatch }} ↻{{ end -}}
|
||||
{{- else -}}
|
||||
n/a
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue