2017-05-23 13:44:26 +02:00

27 lines
632 B
HTML

{% if settings.settings.light_mode %}
{% set pathstatic = ".." %}
{% else %}
{% set pathstatic = "." %}
{% endif %}
<section class="paragraph">
{% if section.title %}
<h3>{{ section.title }}</h3>
{% endif %}
<p>
{% if section.image %}
{% set image = Image(section.image) %}
{% if section.image.float %}
{% set float = section.image.float %}
{% else %}
{% set float = 'left' %}
{% endif %}
{{ image.copy() }}
<span class="{{ float }}">
<img src="{{ pathstatic }}/{{ image.generate_thumbnail("x150") }}" alt=""/>
</span>
{% endif %}
{{ section.text }}
</p>
<div class="clear"></div>
</section>