aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 %}