mirror of
https://github.com/hacks-guide/minimal-mistakes.git
synced 2024-11-23 16:59:41 +00:00
bcd6126612
* Use relative_url and absolute_url where possible Drops the `contains "://"` check, adopt Jekyll 3.7 Ref: https://github.com/mmistakes/minimal-mistakes/pull/2385#issuecomment-579882236 * One more unneeded {% assign %} * Remove one more assign as noted by mmistakes * Consolidate 4 more captures * Consolidate an extra assign on "active" class
10 lines
314 B
Plaintext
10 lines
314 B
Plaintext
<figure class="{{ include.class }}">
|
|
<img src="{{ include.image_path | relative_url }}"
|
|
alt="{% if include.alt %}{{ include.alt }}{% endif %}">
|
|
{% if include.caption %}
|
|
<figcaption>
|
|
{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}
|
|
</figcaption>
|
|
{% endif %}
|
|
</figure>
|