Dump main content div entirely if no sidebars

This commit is contained in:
benjamin melançon 2018-10-22 17:57:07 -04:00
parent 3644cb370c
commit dbb382c917

View file

@ -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 %}
<div{{page.content_attributes }}>
{% endif %}
{# Main content #}
<div{{page.content_attributes.removeClass('column')}}>
{{ page.content }}
</div>
{% if has_columns %}
</div>
{% endif %}
{% endblock main_content %}
{% block sidebar_first %}
{# Sidebar first #}