{% capture imagePath %}/assets/blog/{{ page.id | split: "/" | last }}/{{ include.name }}{% endcapture %} {% capture src %}src="{{ imagePath }}"{% endcapture %} {% assign caption=include.caption | default: "" %} {% assign alt=include.alt | default: caption %} {% if alt != blank %} {% capture alt %}alt="{{ alt }}" title="{{ alt }}"{% endcapture %} {% endif %} {% assign frame=include.frame | default: true %}
{% if caption != blank %}
{{ caption }}
{% endif %}