From dbb382c9174b05bdf55bea8e0125005a64515aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 22 Oct 2018 17:57:07 -0400 Subject: [PATCH] Dump main content div entirely if no sidebars --- agaric/templates/layout/page.html.twig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/agaric/templates/layout/page.html.twig b/agaric/templates/layout/page.html.twig index fcade6c..ffc39fa 100644 --- a/agaric/templates/layout/page.html.twig +++ b/agaric/templates/layout/page.html.twig @@ -106,15 +106,14 @@ }) %} {% endif %} - {% if not has_columns %} - {# TODO figure out how to move the removeClass here - without a Twig parse error: - set page.content_attributes = page.content_attributes|removeClass('column') #} + {% if has_columns %} + {% endif %} {# Main content #} - {{ page.content }} - + {% if has_columns %} + + {% endif %} {% endblock main_content %} {% block sidebar_first %} {# Sidebar first #}