Begin to introduce slider

This commit is contained in:
Nico Schottelius 2020-04-23 20:41:43 +02:00
parent 0ab616d172
commit 4a6b9c8446
4 changed files with 26 additions and 0 deletions

View File

@ -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:

View File

@ -17,3 +17,7 @@ type = markdown
[fields.image]
label = Image
type = url
[fields.slider]
type = flow
flow_blocks = slider

View File

@ -0,0 +1,3 @@
<div class="text-block text-block-{{ this.class }}">
{{ this.text }}
</div>

View File

@ -99,6 +99,12 @@
</form>
</div>
</nav>
{# 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 %}
<div class="jumbotron jumbotron-fluid" style="background-color: {{this.header_background_color}};">
<div class="container-fluid">