{% if hasCustomLayout %} {{ main|raw }} {% else %} {% set sidebar = sidebar is defined ? sidebar : block('sidebar')|trim %} {% set hasSidebar = (sidebar is not empty) %}
{% if tabs is defined and tabs %} {% include "_includes/tabs" %} {% endif %}
{% if hasSidebar %} {% endif %}
{% block content %} {{ content is defined ? content }} {% endblock %}
{% endif %}