summaryrefslogtreecommitdiff
path: root/alabaster-lite
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-03-27 21:41:26 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-03-27 21:41:26 +0800
commit4fb11640ebc8edb781d19d7f6e37de94c7e3a2f0 (patch)
treeb1eb89713422afdf7242c43738e3fd243fe20a0d /alabaster-lite
parentb386e315e76ab19bf3ed527f662b4a6b0761be3a (diff)
No redundant category index in navigation
Diffstat (limited to 'alabaster-lite')
-rw-r--r--alabaster-lite/inc/homepage_nav.html5
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 %}