{% if src %} {# If the image's URL is internal to the site... #} {% if src is not starting_with("http") %} {# ... then convert the page's colocated_path ident to a string so it can be concatenated. #} {% set page_path = page.colocated_path | as_str %} {# ... and prepend the site's base URL to the image's URL. #} {% set src = config.base_url ~ page_path ~ src %} {% endif %} {% endif %}