franca-theme-blog/templates/components/image.j2

11 lines
425 B
Django/Jinja

{% if post.image %}
<p>
{% if home or section %}
<a href="/{{ language }}{{ url }}" rel="permalink" title="{{ image_title }}">
<img data-src="{{ post.image }}" alt="{{ image_title }}" class="home-image lozad" />
</a>
{% else %}
<img data-src="{{ post.image }}" alt="{{ image_title }}" class="post-image lozad" />
{% endif %}
</p>
{% endif %}