don’t wrap included sections by default

readwriteweb
Jaap Joris Vens 2019-04-24 20:17:36 +02:00
rodzic b106d740a0
commit 10e90052f7
2 zmienionych plików z 32 dodań i 30 usunięć

Wyświetl plik

@ -18,9 +18,7 @@
{% for section in object.sections.all %} {% for section in object.sections.all %}
<section class="{{section.type}} color{{section.color}}"> <section class="{{section.type}} color{{section.color}}">
<div class="wrapper">
{% include 'cms/sections/'|add:section.type|add:'.html' %} {% include 'cms/sections/'|add:section.type|add:'.html' %}
</div>
</section> </section>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,5 +1,7 @@
{% load thumbnail embed_video_tags %} {% load thumbnail embed_video_tags %}
<div class="wrapper">
{% if section.image %} {% if section.image %}
<div class="image"> <div class="image">
<img alt="" src="{% thumbnail section.image 800x800 %}"> <img alt="" src="{% thumbnail section.image 800x800 %}">
@ -31,3 +33,5 @@
<a href="{{section.button_link}}">{{section.button_text}}</a> <a href="{{section.button_link}}">{{section.button_text}}</a>
</div> </div>
{% endif %} {% endif %}
</div>