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 @@
{% block template_content %}
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
{% for text, image in CAROUSEL_ITEMS %}
<div class="item {% if loop.first %} active {% endif %}">
<img class="center-block carousel-image" src="{{ image }}" alt="{{ text }}">
<div class="carousel-caption d-none d-md-block">
<h3>{{ text }}</h3>
{% for item in page.images %}
{% set image = item.split('|') %}
<div class="item {% if loop.first %} active {% endif %}">
<img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ image[0] }}">
<div class="carousel-caption d-none d-md-block">
<h3>{{ image[0] }}</h3>
</div>
</div>
</div>
{% endfor %}
</div>
<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