{% set taxons = hookable_metadata.context.taxons %} {% for taxon in taxons %} {% if taxon.enabledChildren|length > 0 %} {% else %} {% hook 'item#link' with { taxon } %} {% endif %} {% endfor %}