{% set html %} {% for segment in segments %} {% include '@nucleus/layout/' ~ segment.type ~ '.html.twig' with { 'segments': segment.children } %} {% endfor %} {% endset %} {% if segment.attributes.sticky or html|trim %} {% set attr_id = segment.attributes.id|default('g-' ~ segment.id) %} {% set attr_extra = segment.attributes.extra|attribute_array %}