From 2a30d9a6178b3866ae7cb98b75df39bd03269c2a Mon Sep 17 00:00:00 2001 From: thomasba Date: Wed, 30 Jan 2019 22:09:35 +0100 Subject: [PATCH] Theme: Rezpte in Tag-Anzeige besser darstellen --- themes/thomasba/layouts/_default/list.html | 44 +++++++++++++++++++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/themes/thomasba/layouts/_default/list.html b/themes/thomasba/layouts/_default/list.html index 85a8c19..9d360f2 100644 --- a/themes/thomasba/layouts/_default/list.html +++ b/themes/thomasba/layouts/_default/list.html @@ -44,13 +44,45 @@ {{ range $paginator.Pages }} + {{ if .Parent }} + {{ if and .Parent.Title (eq .Parent.Title "Rezepte") }} +
+ + {{ if .Params.Thumbnail }} + + {{ else if .Params.image }} + + {{ else }} +
Kein Bild
verfügbar
+ {{ end }} +
+
+

{{.Title}}

+

+ Gepostet am {{ .Date.Format "2. January 2006" }} in: + {{ range .Params.tags }} + {{ . }} + {{ end }} +

+
-
-

{{ .Title }}

-
- {{ .Content }} -
-
+
+ {{ else }} +
+

{{ .Title }}

+
+ {{ .Content }} +
+
+ {{ end }} + {{ else }} +
+

{{ .Title }}

+
+ {{ .Content }} +
+
+ {{ end }} {{ end }}