~xdavidwu/xdavidwu.link

d79d8065fc7bdc34a43c0885d271d97c626b05d6 — Michael Rose 8 years ago 27647b4 + a5699c4
Merge branch 'master' of https://github.com/fa-ribeiro/minimal-mistakes into feature/image-helper
1 files changed, 12 insertions(+), 0 deletions(-)

A _includes/image
A _includes/image => _includes/image +12 -0
@@ 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>