Skip to content

Commit

Permalink
Merge pull request #392 from itk-dev/hotfix/1152-headers
Browse files Browse the repository at this point in the history
1152: Fixed rendering of headers
  • Loading branch information
rimi-itk committed Apr 10, 2024
2 parents c2a0722 + 72b7520 commit 90f8218
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

* [PR-392](https://github.com/itk-dev/hoeringsportal/pull/392)
1152: Fixed rendering of headers

## [4.2.1] - 2024-04-04

* [pr-390](https://github.com/itk-dev/hoeringsportal/pull/390)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
<div class="container">
<div class="row">
<div class="col-md-8 my-3 my-md-5">
<h1 class="title underlined is-white hero__title">{{ header|without('dynamic_block_field:node-hearing_warning') }}</h1>
<h1 class="title underlined is-white hero__title">
{% if header['dynamic_block_field:node-hearing_warning'] is defined %}
{{ header|without('dynamic_block_field:node-hearing_warning') }}
{% else %}
{{ header }}
{% endif %}
</h1>
{% if teaser %}
{{ teaser }}
{% endif %}
Expand Down

0 comments on commit 90f8218

Please sign in to comment.