From 792972d14a5b375ca8eb786855125f92b4248d83 Mon Sep 17 00:00:00 2001 From: User Mms Date: Fri, 25 Oct 2024 22:59:34 +0200 Subject: feat: trek is back --- layouts/shortcodes/ep-table.html | 38 +++++++++++++++++++++++++++++++++++++- layouts/star-trek/baseof.html | 13 ------------- layouts/star-trek/list.html | 2 -- layouts/star-trek/redirect.html | 9 --------- layouts/star-trek/single.html | 2 -- 5 files changed, 37 insertions(+), 27 deletions(-) delete mode 100644 layouts/star-trek/baseof.html delete mode 100644 layouts/star-trek/list.html delete mode 100644 layouts/star-trek/redirect.html delete mode 100644 layouts/star-trek/single.html (limited to 'layouts') diff --git a/layouts/shortcodes/ep-table.html b/layouts/shortcodes/ep-table.html index 59448a1..5614cb3 100644 --- a/layouts/shortcodes/ep-table.html +++ b/layouts/shortcodes/ep-table.html @@ -1 +1,37 @@ -{{ .Inner }} +{{- $caption := .Inner }} +{{- $page := .Page }} +{{- $site := .Site }} + +{{ with $file := .Get 0 }} +{{ with resources.Get $file}} +{{ with . | transform.Unmarshal }} + + + + + + + + {{ range .episodes }} + + {{ $detailUrl := where site.RegularPages "Params.episode_id" .Episode }} + + + + + + + + +{{ end }} +
Air dateEp#Prod#Title
{{ .USRelDate }}{{ .Episode }}{{ .ProductionNo }} + {{ if $detailUrl}} + {{ .Title }} + {{ else }} + {{ .Title }} + {{ end }} +
+{{ end }} +{{ end }} +{{ end }} + diff --git a/layouts/star-trek/baseof.html b/layouts/star-trek/baseof.html deleted file mode 100644 index 70884b1..0000000 --- a/layouts/star-trek/baseof.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ block "main" . }} -{{ end }} - - - - - {{ .Title }} - - - - - - diff --git a/layouts/star-trek/list.html b/layouts/star-trek/list.html deleted file mode 100644 index e4e4a83..0000000 --- a/layouts/star-trek/list.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ define "main" }} -{{ end }} diff --git a/layouts/star-trek/redirect.html b/layouts/star-trek/redirect.html deleted file mode 100644 index 599d57b..0000000 --- a/layouts/star-trek/redirect.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - {{ .Title }} - - - - - diff --git a/layouts/star-trek/single.html b/layouts/star-trek/single.html deleted file mode 100644 index e4e4a83..0000000 --- a/layouts/star-trek/single.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ define "main" }} -{{ end }} -- cgit v1.2.3