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

11 lines
403 B
Django/Jinja

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