Hierarchical navigation menu #4

Merged
lx merged 3 commits from hier-nav-menu into main 2022-06-01 15:04:11 +00:00
Showing only changes of commit 71980e93ae - Show all commits

View file

@ -46,7 +46,7 @@
{% macro navmenu(current) %}
{% if current.ancestors %}
{% set hierarchy = current.ancestors | concat(with=current.relative_path) %}
{% set hierarchy = current.ancestors | slice(start=1) | concat(with=current.relative_path) %}
{% else %}
{% set hierarchy = [current.relative_path] %}
{% endif %}