Dump main content div entirely if no sidebars
This commit is contained in:
parent
3644cb370c
commit
dbb382c917
1 changed files with 5 additions and 6 deletions
|
@ -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 }}
|
||||
{% if has_columns %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock main_content %}
|
||||
{% block sidebar_first %}
|
||||
{# Sidebar first #}
|
||||
|
|
Loading…
Reference in a new issue