From b9d7e654519ffcd2fe67f60c506e0f968ec17e79 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Tue, 12 Dec 2023 22:41:58 +0000 Subject: [PATCH] fix: tv episode ordering --- layouts/partials/tv/table-body.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/tv/table-body.html b/layouts/partials/tv/table-body.html index fe3d621..216a007 100644 --- a/layouts/partials/tv/table-body.html +++ b/layouts/partials/tv/table-body.html @@ -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" ) ) }} - {{- partial "cite" ( dict "c" . "schemaType" "Book" "title" ( index . "Series Title" ) ) -}} + {{- partial "cite" ( dict "c" . "schemaType" "TVSeries" "title" ( index . "Series Title" ) ) -}} {{- partial "cite" ( dict "c" . "schemaType" "TVEpisode" "title" ( index . "Episode Title" ) ) -}} @@ -16,6 +16,7 @@ {{- if ( index . "Date Watched" ) -}} {{- time.Format "Jan 2, 2006" ( index . "Date Watched" ) -}} + {{- if .Rewatch }} ↻{{ end -}} {{- else -}} n/a {{- end -}}