blob: 13d38d6a21bfab9cf3260fca5c62c6c1beedbb21 (
plain) (
tree)
|
|
{% set url = page.path ~ path | trim_start_matches(pat="/") -%}
<figure>
<a href="/{{ url }}">
<img src="{{ resize_image(path=url, width=500, op="fit_width") }}" alt="{{ alt }}" />
</a>
{% if caption -%}
<figcaption class="smaller">{{ caption }}</figcaption>
{% endif -%}
</figure>
|