aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-01 16:58:35 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-01 16:58:35 +0200
commit71980e93aecc7137017f769f8de746d9b2959b9d (patch)
treedeb249595896219cefdd11a641de8cb651cabe7d /templates
parentd99afca9ea2cecee09e980264f9a75c1918a593a (diff)
downloadguide.deuxfleurs.fr-71980e93aecc7137017f769f8de746d9b2959b9d.tar.gz
guide.deuxfleurs.fr-71980e93aecc7137017f769f8de746d9b2959b9d.zip
Simplify navigation a bit
Diffstat (limited to 'templates')
-rw-r--r--templates/_nav.html2
1 files changed, 1 insertions, 1 deletions
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 %}