Skip to content

Commit

Permalink
Merge pull request #492 from localgovdrupal/491-localgov_base-directl…
Browse files Browse the repository at this point in the history
…y-access-value-property-of-lede-in-localgov-page-header-blockhtmltwig

Makes page header block lede rendering slightly more flexible
  • Loading branch information
finnlewis authored Nov 13, 2023
2 parents 6d9f42c + 1a91382 commit 2f5a65f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/block/localgov-page-header-block.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@
<h1 class="lgd-page-title-block__title">{{ title }}</h1>
{% endif %}

{% if lede['#value'] %}
<p class="lgd-page-title-block__subheader">{{ lede['#value'] }}</p>
{% if lede %}
{% if lede['#value'] %}
<p class="lgd-page-title-block__subheader">{{ lede['#value'] }}</p>
{% else %}
{{ lede }}
{% endif %}
{% endif %}

</div>
Expand Down

0 comments on commit 2f5a65f

Please sign in to comment.