wiki-grav/themes/quark/templates/partials/layout.html.twig
2022-04-24 14:32:58 +02:00

15 lines
429 B
Twig

{% set item_col = show_sidebar ? 'col-9 col-md-12' : 'col-12' %}
{% set sidebar_col = show_sidebar ? 'col-3 col-md-12' : 'col-12' %}
<div class="columns">
<div id="item" class="column {{ item_col }} extra-spacing">
{% block item %}{% endblock %}
</div>
{% if show_sidebar %}
<div id="sidebar" class="column {{ sidebar_col }}">
{% block sidebar %}{% endblock %}
</div>
{% endif %}
</div>