kopia lustrzana https://github.com/rtts/django-simplecms
don’t wrap included sections by default
rodzic
b106d740a0
commit
10e90052f7
|
@ -18,9 +18,7 @@
|
|||
|
||||
{% for section in object.sections.all %}
|
||||
<section class="{{section.type}} color{{section.color}}">
|
||||
<div class="wrapper">
|
||||
{% include 'cms/sections/'|add:section.type|add:'.html' %}
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{% load thumbnail embed_video_tags %}
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
{% if section.image %}
|
||||
<div class="image">
|
||||
<img alt="" src="{% thumbnail section.image 800x800 %}">
|
||||
|
@ -31,3 +33,5 @@
|
|||
<a href="{{section.button_link}}">{{section.button_text}}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
|
Ładowanie…
Reference in New Issue