Merge branch 'master' of https://github.com/fa-ribeiro/minimal-mistakes into feature/image-helper

This commit is contained in:
Michael Rose 2016-11-15 09:42:37 -05:00
commit 4b10ba1c91

12
_includes/image Normal file
View 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>