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 %} {% endif %}
{% if not has_columns %} {% if has_columns %}
{# TODO figure out how to move the removeClass here <div{{page.content_attributes }}>
without a Twig parse error:
set page.content_attributes = page.content_attributes|removeClass('column') #}
{% endif %} {% endif %}
{# Main content #} {# Main content #}
<div{{page.content_attributes.removeClass('column')}}>
{{ page.content }} {{ page.content }}
{% if has_columns %}
</div> </div>
{% endif %}
{% endblock main_content %} {% endblock main_content %}
{% block sidebar_first %} {% block sidebar_first %}
{# Sidebar first #} {# Sidebar first #}