grav-theme-libretic/templates/modular/showcase.html.twig

30 lines
1 KiB
Twig
Raw Normal View History

2015-01-15 19:15:54 +01:00
<div id="content-slide">
<div class="slideme">
{% for slide in page.header.slides %}
<div class="modular-row showcase flush-top" {% if page.media[slide.image] %}style="background-image: url({{ page.media[slide.image].url }});"{% endif %}>
2020-12-13 01:32:27 +01:00
<h1>{{ slide.heading|raw }}</h1>
2015-01-15 19:15:54 +01:00
<h2>{{ slide.subheading }}</h2>
<a class="button" href="{{ slide.button_url }}">{{ slide.button_text }}</a>
</div>
{% endfor %}
</div>
</div>
2020-12-13 01:32:27 +01:00
{{ content|raw }}
2015-01-15 19:15:54 +01:00
<script type="text/javascript">
$('#content-slide').slideme({
arrows: {{ site.header_options.arrows }},
autoslide: {{ site.header_options.autoslide }},
autoslideHoverStop: {{ site.header_options.autoslideHoverStop }},
interval: {{ site.header_options.interval }},
loop: {{ site.header_options.loop }},
2015-01-15 19:15:54 +01:00
pagination: "numbers",
transition : '{{ site.header_options.transition }}',
itemsForSlide: {{ site.header_options.itemsForSlide }},
touch: {{ site.header_options.touch }},
swipe: {{ site.header_options.swipe }},
2015-01-15 19:15:54 +01:00
});
</script>