From d32d7b7b4977650cb441885a17ee75f0236a094e Mon Sep 17 00:00:00 2001 From: rra Date: Fri, 24 Sep 2021 15:39:53 +0200 Subject: [PATCH] listings show card types --- layouts/_default/list.html | 47 +++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cd6e480..ba88fdd 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,23 +1,32 @@ {{ define "main" }} -
+
- {{ range .Pages }} -
-
-
-

{{ .Title }}

- -
- {{ if .Truncated }} -
- {{ .Summary }} -

Read Moreā€¦

- {{ else }} -
- {{ end }} -
-
-
+ {{ range (.Paginator 13).Pages }} + + {{ if in .Params.categories "tv"}} + + {{- partial "video_box.html" . -}} + + {{ else if in .Params.categories "calendar" }} + + {{- partial "calendar_card.html" . -}} + + {{ else if in .Params.categories "network" }} + + {{- partial "network_card.html" . -}} + + {{ else }} + + {{- partial "card.html" . -}} + + {{ end }} + {{ end }} -
+ + + + + {{ end }}