Begin to introduce slider
This commit is contained in:
parent
0ab616d172
commit
4a6b9c8446
4 changed files with 26 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -17,3 +17,7 @@ type = markdown
|
|||
[fields.image]
|
||||
label = Image
|
||||
type = url
|
||||
|
||||
[fields.slider]
|
||||
type = flow
|
||||
flow_blocks = slider
|
||||
|
|
3
templates/blocks/slider.html
Normal file
3
templates/blocks/slider.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="text-block text-block-{{ this.class }}">
|
||||
{{ this.text }}
|
||||
</div>
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue