Simplify navigation a bit

This commit is contained in:
Alex 2022-06-01 16:58:35 +02:00
parent d99afca9ea
commit 71980e93ae
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -46,7 +46,7 @@
{% macro navmenu(current) %} {% macro navmenu(current) %}
{% if current.ancestors %} {% 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 %} {% else %}
{% set hierarchy = [current.relative_path] %} {% set hierarchy = [current.relative_path] %}
{% endif %} {% endif %}