From 89f43c1cbd939268211f03cca291b0c987dcd085 Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 22 Dec 2021 00:46:42 +0100 Subject: [PATCH] improve recepie, improve startpage --- content/contents.lr | 2 ++ .../rezept/klassisch/rezept.yaml/contents.lr | 2 +- flowblocks/flow_text_image_section.ini | 4 ++++ templates/blocks/flow_text_image_section.html | 24 +++++++++++-------- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/content/contents.lr b/content/contents.lr index 12cf863..8bbff51 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -17,6 +17,8 @@ section: #### flow_text_image_section #### title: Die Waffel Formel ---- +title_url: /rezept/ +---- content_teaser: Mit viel Liebe verwandeln wir rohe Zutaten in waffelfähigen Teig. Dabei verwenden wir lang erforschte Rezepturen, die wir euch nicht verheimlichen wollen. ---- content_body: diff --git a/content/rezept/klassisch/rezept.yaml/contents.lr b/content/rezept/klassisch/rezept.yaml/contents.lr index 4f1139a..1998486 100644 --- a/content/rezept/klassisch/rezept.yaml/contents.lr +++ b/content/rezept/klassisch/rezept.yaml/contents.lr @@ -117,7 +117,7 @@ usda_num: 1001 amounts: ##### flow_amounts ##### -amount: vegan +amount: 250 ----- unit: g ##### flow_amounts ##### diff --git a/flowblocks/flow_text_image_section.ini b/flowblocks/flow_text_image_section.ini index 5daa9d7..2709101 100644 --- a/flowblocks/flow_text_image_section.ini +++ b/flowblocks/flow_text_image_section.ini @@ -7,6 +7,10 @@ label = {{ this.title }} label = Title type = string +[fields.title_url] +label = Title URL +type = string + [fields.content_teaser] label = Content Teaser type = markdown diff --git a/templates/blocks/flow_text_image_section.html b/templates/blocks/flow_text_image_section.html index b77f4ca..8a19a5a 100644 --- a/templates/blocks/flow_text_image_section.html +++ b/templates/blocks/flow_text_image_section.html @@ -1,12 +1,17 @@ -{#- Layout für halb-Text - halb Bild Startseitendinge #} - -
-
-
-

{{ this.title }}

-
-
-
+{#- Layout für halb-Text - halb Bild Startseitendinge -#} +{{- '\n ' -}}
+{{- '\n ' -}}
+{{- '\n ' -}}
+{{- '\n ' -}} {%- if this.title_url is defined and this.title_url != '' -%} + + {%- endif -%} +

{{ this.title }}

+ {%- if this.title_url is defined and this.title_url != '' -%} + + {%- endif -%} +{{- '\n ' -}}
+{{- '\n ' -}}
+{{- '\n ' -}}
-