2016-10-07 22:45:59 +02:00
|
|
|
<figure class="{{ include.class }}">
|
|
|
|
<img src=
|
|
|
|
{% if include.image_path contains "://" %}
|
|
|
|
"{{ include.image_path }}"
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
"{{ include.image_path | relative_url }}"
|
2016-10-07 22:45:59 +02:00
|
|
|
{% endif %}
|
|
|
|
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
|
|
|
{% if include.caption %}
|
|
|
|
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
|
|
|
{% endif %}
|
|
|
|
</figure>
|