grav-theme-libretic/templates/modular/showcase.html.twig
Olivier Navas 17bb11854e - Several modifications of template files for Libretic's web site
- Addition of prerequisites files for scss modifications
- Update of Fontawesome font
- Update of NovecentoSans font for latin characters
- Integration of Pacifico font in the theme instead of dynamically downloading from some google web site
- Removal of some unuseful font files
2022-05-14 19:43:00 +02:00

29 lines
1 KiB
Twig

<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 %}>
<h1>{{ slide.heading|raw }}</h1>
<h2>{{ slide.subheading|raw }}</h2>
<a class="button" href="{{ slide.button_url }}">{{ slide.button_text }}</a>
</div>
{% endfor %}
</div>
</div>
{{ content|raw }}
<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 }},
pagination: "numbers",
transition : '{{ site.header_options.transition }}',
itemsForSlide: {{ site.header_options.itemsForSlide }},
touch: {{ site.header_options.touch }},
swipe: {{ site.header_options.swipe }},
});
</script>