{% regroup links by heading as link_types %}{% autoescape off %} {% for kind in link_types %} {{kind.grouper}}