{#- Override of Material's partials/path-item.html: strips section icons written as ":icon: Title" (see the sectionicons plugin) so the raw markup is not shown in the breadcrumbs. Icons are not rendered, to stay consistent with pages, whose `icon` metadata is not shown either. -#} {% macro render_content(nav_item) %} {% set title = nav_item.title %} {% if "material-joapuiib/sectionicons" in config.plugins and title %} {% set title = title | remove_icon %} {% endif %} {{ title }} {% endmacro %} {#- Sections are not pages: Material links them to their first page. Here a section is a link only when it has an index page (`navigation.indexes`, a child `is_index`); otherwise it is plain text. -#} {% macro render(nav_item, ref) %} {% if nav_item.children %} {% set index = (nav_item.children | selectattr("is_index") | first) if "navigation.indexes" in features else none %} {% if index %}