Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (9 sloc) 594 Bytes
{% assign img_path = page.path | replace: '/_posts/', '/img/' | remove: '.md' | remove: '.markdown' | append: '/' | prepend: '/' %}
{% assign img_ext = include.src | split: '.' | last | prepend: '.' %}
{% assign img_first = include.src | remove: img_ext %}
{% if include.href %}
{% assign href = include.href %}
{% else %}
{% capture href %}{{ img_path }}{{ img_first }}.full{{ img_ext }}{% endcapture %}
{% endif %}
<a class="blog-image" href="{{ href }}" ><img src="{{ img_path }}{{ img_first }}.thumb{{ img_ext }}" alt="{{ include.caption | escape }}" /><span>{{ include.caption }}</p></a>