hacks-guide-minimal-mistake.../_includes/image

13 lines
455 B
Text
Raw Normal View History

<figure class="{{ include.class }}">
<img src=
{% if include.image_path contains "://" %}
"{{ include.image_path }}"
{% else %}
2016-11-05 22:27:59 +01:00
"{{ include.image_path | prepend: "/assets/images/" | prepend: absolute_url }}"
{% endif %}
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
{% if include.caption %}
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
{% endif %}
</figure>