{%- if header.img -%}
{%- if header.img is containing("$BASE_URL") -%}
{# Conversion no longer supported in favour of proper path. #}
{{ throw(message="ERROR: The image path for the header should not contain '$BASE_URL'. Please remove it and use the proper image path.") }}
{%- else -%}
{%- set image_path = get_url(path=header.img, trailing_slash=false) | safe -%}
{%- endif -%}