summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-02 11:52:44 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-02 11:52:44 +0800
commit8bd4a90a29c07cb948b1dd294ac61691c431eceb (patch)
tree1cf9d0aedc3d04254ecd83bfb78d7c4f2795d3b3
parentRecursive navigation (diff)
downloadwebsite-8bd4a90a29c07cb948b1dd294ac61691c431eceb.tar.gz
website-8bd4a90a29c07cb948b1dd294ac61691c431eceb.tar.zst
website-8bd4a90a29c07cb948b1dd294ac61691c431eceb.zip
Don't require current or ancestor to navigate
-rw-r--r--layouts/partials/recursive_nav.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/recursive_nav.html b/layouts/partials/recursive_nav.html
index 4a3ed2c..763c3b6 100644
--- a/layouts/partials/recursive_nav.html
+++ b/layouts/partials/recursive_nav.html
@@ -5,7 +5,7 @@
<li {{ if eq $currentPage . }}class="nav-current"{{ end }}>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
- {{ if and .Pages $isCurrentOrAncestor }}
+ {{ if .Pages }}
{{ partial "recursive_nav.html" (dict "currentPage" $currentPage "pages" .Pages) }}
{{ end }}
{{ end }}