{% set attr_class = segment.attributes.class ? ' class="' ~ segment.attributes.class|e ~ '"' %}
{% set attr_extra = segment.attributes.extra|attribute_array %}
{% set offcanvas %}
{% for child in segment.children %}
{% include '@nucleus/layout/' ~ child.type ~ '.html.twig' with { 'segments': child.children } %}
{% endfor %}
{% endset %}
{%- if segment.attributes.sticky or offcanvas|trim -%}
{{ offcanvas|raw -}}
{% endif %}