~xdavidwu/xdavidwu.link

f031e813d13b2ab3ff38ee2d5e178295ee21c63a — Michael Rose 8 years ago 27647b4 + 9f3bff3
Merge branch 'feature/image-helper' into develop
1 files changed, 12 insertions(+), 0 deletions(-)

A _includes/figure
A _includes/figure => _includes/figure +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>