fix: Show slideshow indicator if more than 1 image
This commit is contained in:
parent
3d02648259
commit
3e4b6cfb58
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
|
||||
<div id="the-carousel" class="carousel slide">
|
||||
{% if slides | len > 1 %}
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
{% for slide in slides %}
|
||||
|
|
@ -10,6 +11,7 @@
|
|||
{%- if loop.index==0 %}class="active"{% endif %}></li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endif %}
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue