Lego2012
9/26/2016 - 9:24 PM

Reference an Image: Version 1

Reference an Image: Version 1

<img src="{{ site.baseurl }}assets/{{ include.src}}" alt="{{ include.alt }}">

<!-- For example: -->
{% include image.html src="image.png" alt="an image" %}

<!-- 
This example assumes you’re using baseurl. This is just an example of how you can use includes to add custom markup for elements without writing plugins. Do you need baseurl in the first place, though? I know some projects require it, but assets become a lot simpler without it. 
-->