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 %}
|
{% 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 #}
|
||||||
|
|
Loading…
Reference in a new issue