Browse Source

Begin to introduce slider

slider
Nico Schottelius 2 years ago
parent
commit
4a6b9c8446
  1. 13
      content/contents.lr
  2. 4
      models/page-2020.ini
  3. 3
      templates/blocks/slider.html
  4. 6
      templates/layout-2020.html

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

4
models/page-2020.ini

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

3
templates/blocks/slider.html

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

6
templates/layout-2020.html

@ -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…
Cancel
Save