Simplify navigation a bit
This commit is contained in:
parent
d99afca9ea
commit
71980e93ae
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…
Reference in a new issue