diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-03-27 21:41:26 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-03-27 21:41:26 +0800 |
commit | 4fb11640ebc8edb781d19d7f6e37de94c7e3a2f0 (patch) | |
tree | b1eb89713422afdf7242c43738e3fd243fe20a0d /alabaster-lite/inc/homepage_nav.html | |
parent | b386e315e76ab19bf3ed527f662b4a6b0761be3a (diff) |
No redundant category index in navigation
Diffstat (limited to 'alabaster-lite/inc/homepage_nav.html')
-rw-r--r-- | alabaster-lite/inc/homepage_nav.html | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ </li> {% else %} <li> - {{ nav_item.title }} - {{ nav_tree(nav_item.children) }} + {# HACK: children[0] is the category index, and [1:] are its pages #} + <a href="{{ nav_item.children[0].url }}">{{ nav_item.children[0].title }}</a> + {{ nav_tree(nav_item.children[1:]) }} </li> {% endif %} {% endfor %} |