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

11 lines
403 B
Plaintext
Raw Normal View History

2023-07-22 13:18:15 +00:00
{% 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 %}