We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24088f commit 3a1df91Copy full SHA for 3a1df91
layouts/partials/book-menu-filetree.html
@@ -3,13 +3,7 @@
3
{{ $bookSection = "/" }}{{/* Backward compatibility */}}
4
{{ end }}
5
6
-{{ $dirs := (split .CurrentSection.RelPermalink "/") }}
7
-{{ $dir := "" }}
8
-{{ if and (gt (len $dirs) 2) (ne (index $dirs 1) "posts") }}
9
- {{ $dir = (index $dirs 1) }}
10
-{{ else if and (gt (len $dirs) 3) (eq (index $dirs 1) "posts" ) }}
11
- {{ $dir = (index $dirs 2) }}
12
-{{ end }}
+{{ $dir := .Section }}
13
{{ with .Site.GetPage $bookSection $dir }}
14
{{ template "book-section-children" (dict "Section" . "CurrentPage" $) }}
15
0 commit comments