{% if src %} {# If the image's URL is internal to the site... #} {% if src is not starting_with("http") %} {# ... then prepend the site's base URL to the image's URL. #} {% set src = get_url(path=page.colocated_path ~ src) %} {% endif %}
{% if caption %}
{{ caption | markdown() | safe }}
{% endif %}
{% endif %}