You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.2 KiB
HTML
23 lines
1.2 KiB
HTML
![]()
1 year ago
|
{%- set header = section.extra.header-%}
|
||
![]()
2 years ago
|
<div id="banner-container-home">
|
||
|
<div id="home-banner-text">
|
||
![]()
1 year ago
|
<h1 id="home-banner-header">{{ header.title }}</h1>
|
||
![]()
2 years ago
|
<section id="banner-home-subtitle">
|
||
![]()
1 year ago
|
{{ section.content | safe }}
|
||
![]()
2 years ago
|
</section>
|
||
|
</div>
|
||
![]()
1 year ago
|
{%- if header.img -%}
|
||
![]()
2 years ago
|
{# 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. #}
|
||
![]()
1 year ago
|
{%- if header.img is containing("$BASE_URL") -%}
|
||
|
{%- set image_path = header.img | replace(from="$BASE_URL", to=config.base_url) | safe -%}
|
||
![]()
2 years ago
|
{# 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.") }} #}
|
||
|
{%- else -%}
|
||
![]()
1 year ago
|
{%- set image_path = get_url(path=header.img, trailing_slash=false) | safe -%}
|
||
![]()
2 years ago
|
{%- endif -%}
|
||
|
<div id="image-container-home">
|
||
|
<img alt="the owner" id="banner-home-img" src="{{ image_path }}" />
|
||
|
</div>
|
||
|
{%- endif -%}
|
||
![]()
2 years ago
|
</div>
|