{% 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 id="items"> {% block item %}{% endblock %} </div>