mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Added owl-carousel plugin support
This commit is contained in:
parent
3c49ff2772
commit
6e144dabe7
1 changed files with 23 additions and 0 deletions
23
templates/partials/owl-carousel.html.twig
Executable file
23
templates/partials/owl-carousel.html.twig
Executable file
|
@ -0,0 +1,23 @@
|
|||
{% block stylesheets %}
|
||||
<style>
|
||||
.wrapper-carousel-{{ owl_id }} {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.carousel-{{ owl_id }} {
|
||||
width: 0;
|
||||
margin-bottom: 2rem;
|
||||
flex-basis: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<div class="wrapper-carousel-{{ owl_id }}">
|
||||
<div class="carousel-{{ owl_id }}">
|
||||
<div class="owl-carousel owl-theme" id="{{ owl_id }}">
|
||||
{{ owl_items|regex_replace('(^\n?<p>|<\/p>$)','')|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Add table
Reference in a new issue