From 1a1a7f79f2c278f4f6e9bfefe7c73089533b2eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar?= Date: Mon, 15 Jan 2024 18:37:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20deprecate(home-banner)!:=20force?= =?UTF-8?q?=20proper=20header.img=20path=20(#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/home_banner.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/partials/home_banner.html b/templates/partials/home_banner.html index 54d1a5f..353757b 100644 --- a/templates/partials/home_banner.html +++ b/templates/partials/home_banner.html @@ -7,11 +7,9 @@ {%- if header.img -%} - {# Check if the image contains "$BASE_URL". This feature will be removed in the future #} {# in favour of using the proper image path. It will be a breaking change. #} {%- if header.img is containing("$BASE_URL") -%} - {%- set image_path = header.img | replace(from="$BASE_URL", to=config.base_url) | safe -%} - {# When the feature is removed, uncomment below to throw a descriptive error #} - {# {{ throw(message="ERROR: The image path for the header should not contain '$BASE_URL'. Please remove it and use the proper image path.") }} #} + {# 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 -%}