From 4fb11640ebc8edb781d19d7f6e37de94c7e3a2f0 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 27 Mar 2022 21:41:26 +0800 Subject: No redundant category index in navigation --- alabaster-lite/inc/homepage_nav.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'alabaster-lite/inc') diff --git a/alabaster-lite/inc/homepage_nav.html b/alabaster-lite/inc/homepage_nav.html index 1c04868..7519857 100644 --- a/alabaster-lite/inc/homepage_nav.html +++ b/alabaster-lite/inc/homepage_nav.html @@ -9,8 +9,9 @@ {% else %}
  • - {{ nav_item.title }} - {{ nav_tree(nav_item.children) }} + {# HACK: children[0] is the category index, and [1:] are its pages #} + {{ nav_item.children[0].title }} + {{ nav_tree(nav_item.children[1:]) }}
  • {% endif %} {% endfor %} -- cgit v1.2.3