Skip to content

Commit

Permalink
Merge pull request #571 from CuBoulder/issue/553
Browse files Browse the repository at this point in the history
Update page.html.twig
  • Loading branch information
jcsparks authored Nov 30, 2023
2 parents 9040b48 + b0e5240 commit c4bd566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@
{{ page.above_content }}
</div>
{% endif %}
{% if page.left_sidebar|render or page.right_sidebar|render %}
{# We are checking for length below to make sure that the sidebars have any content. This is so that sidebar menus don't render the sidebars if the menu is empty #}
{% if (page.left_sidebar|render|striptags|trim|length > 0) or (page.right_sidebar|render|striptags|trim|length > 0) %}
{% if page.left_sidebar|render and page.right_sidebar|render %}
<div class="ucb-layout-container container g-0">
<div class="layout-row row">
Expand Down

0 comments on commit c4bd566

Please sign in to comment.