mirror of
https://github.com/hacks-guide/Guide_Panda.git
synced 2024-11-23 00:49:51 +00:00
13 lines
417 B
Plaintext
13 lines
417 B
Plaintext
<figure class="{{ include.class }}">
|
|
<img src=
|
|
{% if include.image_path contains "://" %}
|
|
"{{ include.image_path }}"
|
|
{% else %}
|
|
"{{ include.image_path | absolute_url }}"
|
|
{% endif %}
|
|
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
|
{% if include.caption %}
|
|
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
|
{% endif %}
|
|
</figure>
|