Skip to content
Snippets Groups Projects
Commit f6cf62b7 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Allow images from content. Closes #2.

parent c2f3da4a
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,14 @@ ...@@ -3,13 +3,14 @@
{% block template_content %} {% block template_content %}
<div id="myCarousel" class="carousel slide" data-ride="carousel"> <div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner"> <div class="carousel-inner">
{% for text, image in CAROUSEL_ITEMS %} {% for item in page.images %}
<div class="item {% if loop.first %} active {% endif %}"> {% set image = item.split('|') %}
<img class="center-block carousel-image" src="{{ image }}" alt="{{ text }}"> <div class="item {% if loop.first %} active {% endif %}">
<div class="carousel-caption d-none d-md-block"> <img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ image[0] }}">
<h3>{{ text }}</h3> <div class="carousel-caption d-none d-md-block">
<h3>{{ image[0] }}</h3>
</div>
</div> </div>
</div>
{% endfor %} {% endfor %}
</div> </div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"> <a class="left carousel-control" href="#myCarousel" data-slide="prev">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment