Rename image helper to figure
This commit is contained in:
parent
4b10ba1c91
commit
749c780736
2 changed files with 12 additions and 0 deletions
12
docs/_includes/figure
Normal file
12
docs/_includes/figure
Normal file
|
@ -0,0 +1,12 @@
|
|||
<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>
|
Loading…
Reference in a new issue