{% set url = page.path ~ path | trim_start_matches(pat="/") -%} {% set image = resize_image(path=url, width=width | default(value=500), op="fit_width", format=format | default(value="jpg")) -%}
{{ alt }} {% if caption -%}
{{ caption | markdown(inline=true) | safe }}
{% endif -%}