From 71980e93aecc7137017f769f8de746d9b2959b9d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 1 Jun 2022 16:58:35 +0200 Subject: Simplify navigation a bit --- templates/_nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/_nav.html b/templates/_nav.html index 3eb6900..9b76c96 100644 --- a/templates/_nav.html +++ b/templates/_nav.html @@ -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 %} -- cgit v1.2.3