From e1601cb90086fee8d597501c1f8ef70b8b238898 Mon Sep 17 00:00:00 2001 From: Joshua Nicholson <94021017+jnicholCU@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:40:39 -0700 Subject: [PATCH] Update layout--two-column.html.twig Updated two column layout to be flex-grow-1 for each column and to check if the column is empty (mainly for the sake of empty menus) for rendering purposes. --- layouts/two-column/layout--two-column.html.twig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/two-column/layout--two-column.html.twig b/layouts/two-column/layout--two-column.html.twig index 9f61b74..83ff499 100644 --- a/layouts/two-column/layout--two-column.html.twig +++ b/layouts/two-column/layout--two-column.html.twig @@ -71,13 +71,13 @@
- {% if content.first %} -
+ {% if (content.first) and (content.first|render|striptags|trim != "") %} +
{{ content.first }}
{% endif %} - {% if content.second %} -
+ {% if (content.second) and (content.second|render|striptags|trim != "") %} +
{{ content.second }}
{% endif %}