diff --git a/content/contents.lr b/content/contents.lr index 4775b03..b5f0c98 100644 --- a/content/contents.lr +++ b/content/contents.lr @@ -8,3 +8,16 @@ There is not much here - everything is stored below /u/. You should actually not be able to see this page below ungleich.ch. If you do, please let us know. --- +slider: + +title: + +description: + +button_text: + +button_link: + +background_image: + +video_mp4: diff --git a/models/page-2020.ini b/models/page-2020.ini index 2a9b653..b526442 100644 --- a/models/page-2020.ini +++ b/models/page-2020.ini @@ -17,3 +17,7 @@ type = markdown [fields.image] label = Image type = url + +[fields.slider] +type = flow +flow_blocks = slider diff --git a/templates/blocks/slider.html b/templates/blocks/slider.html new file mode 100644 index 0000000..1397967 --- /dev/null +++ b/templates/blocks/slider.html @@ -0,0 +1,3 @@ +
+ {{ this.text }} +
diff --git a/templates/layout-2020.html b/templates/layout-2020.html index f257403..83686b1 100644 --- a/templates/layout-2020.html +++ b/templates/layout-2020.html @@ -99,6 +99,12 @@ + {# Priority: + If slider given, take slider. + If headline1/2/3 given, take the headline. + Else default to boxed title + subtitle + #} + {% if this.headline1 or this.headline2 or this.headline3 %}