Sha256: 457054fab6b5303ce63c2d898ba791d3f29f9423d4e3532ec028cb2c96189f85

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

{% if page.filename %}
    {% capture imagePath %}{{ page.filename | slugify }}/{{ include.name }}{% endcapture %}
{% else %}
    {% capture imagePath %}{{ page.title | slugify }}/{{ include.name }}{% endcapture %}
{% endif %}

{% if include.caption %}
<figure>
<img src="{{ site.baseurl }}/assets/images/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
<figcaption>{{ include.caption }}</figcaption>
</figure>
{% else %}
<img src="{{ site.baseurl }}/assets/images/posts/{{ imagePath }}" {% if include.alt %} alt="{{ include.alt }}" {% endif %} {% if include.width %} width="{{ include.width }}" {% endif %}/>
{% endif %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nightmare-0.1.0 _includes/image.html