mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-27 19:00:36 +00:00
Rename image helper to figure
This commit is contained in:
parent
4b10ba1c91
commit
749c780736
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 New Issue
Block a user