diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-02 11:52:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-02 11:52:44 +0800 |
commit | 8bd4a90a29c07cb948b1dd294ac61691c431eceb (patch) | |
tree | 1cf9d0aedc3d04254ecd83bfb78d7c4f2795d3b3 /layouts | |
parent | Recursive navigation (diff) | |
download | website-8bd4a90a29c07cb948b1dd294ac61691c431eceb.tar.gz website-8bd4a90a29c07cb948b1dd294ac61691c431eceb.tar.zst website-8bd4a90a29c07cb948b1dd294ac61691c431eceb.zip |
Don't require current or ancestor to navigate
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/recursive_nav.html | 2 |
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 }} |