Skip to content

Commit b5e96c0

Browse files
committed
update book menu
1 parent 9abe0e9 commit b5e96c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

layouts/partials/book-menu-filetree.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
{{ else if and (gt (len $dirs) 3) (eq (index $dirs 1) "posts" ) }}
1111
{{ $dir = (index $dirs 2) }}
1212
{{ end }}
13+
{{ with .Site.GetPage $bookSection $dir }}
14+
{{ template "book-section-children" (dict "Section" . "CurrentPage" $) }}
15+
{{ end }}
16+
1317
{{ define "book-section-children" }}{{/* (dict "Section" .Section "CurrentPage" .CurrentPage) */}}
1418
<ul>
1519
{{ range (where .Section.Pages "Params.bookhidden" "ne" true) }}

0 commit comments

Comments
 (0)