Skip to content

Commit

Permalink
#2321: Add page template workaround for empty sidebars issue affectin…
Browse files Browse the repository at this point in the history
…g recent Menu Block releases.
  • Loading branch information
joeparsons committed Jun 1, 2023
1 parent 881fb0a commit 7d1d53c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions themes/custom/az_barrio/templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,16 @@
<main{{ content_attributes }}>
{{ page.content }}
</main>
{% if page.sidebar_first %}
{% set has_sidebar_first = page.sidebar_first|render|striptags|trim is not empty %}
{% if has_sidebar_first %}
<div{{ sidebar_first_attributes }}>
<aside class="section" role="complementary">
{{ page.sidebar_first }}
</aside>
</div>
{% endif %}
{% if page.sidebar_second %}
{% set has_sidebar_second = page.sidebar_second|render|striptags|trim is not empty %}
{% if has_sidebar_second %}
<div{{ sidebar_second_attributes }}>
<aside class="section" role="complementary">
{{ page.sidebar_second }}
Expand Down

0 comments on commit 7d1d53c

Please sign in to comment.