Hierarchical navigation menu #4
1 changed files with 1 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue