-
-
Save bhdicaire/583e7e342d50b7bd2ae6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## _includes/image.html | |
<div class="image-wrapper" > | |
{% if include.url %} | |
<a href="{{ include.url }}" title="{{ include.title }}" target="_blank"> | |
{% endif %} | |
<img src="{{ site.url }}/{{ include.img }}" alt="{{ include.title }}"/> | |
{% if include.url %} | |
</a> | |
{% endif %} | |
{% if include.caption %} | |
<p class="image-caption">{{ include.caption }}</p> | |
{% endif %} | |
</div> | |
## Include the image in your post and specify a caption with this tag | |
{% include image.html img="assets/images/image_file" title="" caption="" %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment