{#- Override of Material's partials/path-item.html: renders section icons written as ":icon: Title" (see the sectionicons plugin) instead of showing the raw markup in the breadcrumbs. -#} {% macro render_content(nav_item) %} {% set title = nav_item.title %} {% if "material-joapuiib/sectionicons" in config.plugins and title %} {% set section_icon = title | extract_icon %} {% if section_icon %} {% set title = title | remove_icon %} {% include ".icons/" ~ section_icon ~ ".svg" %} {% endif %} {% endif %} {{ title }} {% endmacro %} {% macro render(nav_item, ref) %} {% set ref = ref or nav_item %} {% if nav_item.children %} {% set first = nav_item.children | first %} {% if first.children %} {{ render(first, ref) }} {% else %}
  • {{ render_content(ref) }}
  • {% endif %} {% else %}
  • {{ render_content(ref) }}
  • {% endif %} {% endmacro %}