Skip to content

Commit

Permalink
Update page.html.twig
Browse files Browse the repository at this point in the history
Update for the sidebar menu hide/show.
  • Loading branch information
jnicholCU committed Nov 29, 2023
1 parent 675de04 commit b0e5240
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 b0e5240

Please sign in to comment.