diff --git a/themes/custom/az_barrio/templates/layout/page.html.twig b/themes/custom/az_barrio/templates/layout/page.html.twig index 252f0eebe0..b5d225fb8b 100644 --- a/themes/custom/az_barrio/templates/layout/page.html.twig +++ b/themes/custom/az_barrio/templates/layout/page.html.twig @@ -200,14 +200,16 @@ {{ page.content }} - {% if page.sidebar_first %} + {% set has_sidebar_first = page.sidebar_first|render|striptags|trim is not empty %} + {% if has_sidebar_first %} {% endif %} - {% if page.sidebar_second %} + {% set has_sidebar_second = page.sidebar_second|render|striptags|trim is not empty %} + {% if has_sidebar_second %}