Skip to content

Commit 90f8218

Browse files
authored
Merge pull request #392 from itk-dev/hotfix/1152-headers
1152: Fixed rendering of headers
2 parents c2a0722 + 72b7520 commit 90f8218

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
88

9+
* [PR-392](https://github.com/itk-dev/hoeringsportal/pull/392)
10+
1152: Fixed rendering of headers
11+
912
## [4.2.1] - 2024-04-04
1013

1114
* [pr-390](https://github.com/itk-dev/hoeringsportal/pull/390)

web/themes/custom/hoeringsportal/templates/components/header.html.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
<div class="container">
55
<div class="row">
66
<div class="col-md-8 my-3 my-md-5">
7-
<h1 class="title underlined is-white hero__title">{{ header|without('dynamic_block_field:node-hearing_warning') }}</h1>
7+
<h1 class="title underlined is-white hero__title">
8+
{% if header['dynamic_block_field:node-hearing_warning'] is defined %}
9+
{{ header|without('dynamic_block_field:node-hearing_warning') }}
10+
{% else %}
11+
{{ header }}
12+
{% endif %}
13+
</h1>
814
{% if teaser %}
915
{{ teaser }}
1016
{% endif %}

0 commit comments

Comments
 (0)