File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ <h3>{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3>
111
111
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
112
112
{{ if ne $numberOfPages 0 }}
113
113
< ul >
114
- {{ .Scratch.Set "pages" .Pages }}
114
+ {{ $currentNode .Scratch.Set "pages" .Pages }}
115
115
{{ if .Sections}}
116
- {{ .Scratch.Set "pages" (.Pages | union .Sections) }}
116
+ {{ $currentNode .Scratch.Set "pages" (.Pages | union .Sections) }}
117
117
{{end}}
118
- {{ $pages := (.Scratch.Get "pages") }}
118
+ {{ $pages := ($currentNode .Scratch.Get "pages") }}
119
119
120
120
{{if eq .Site.Params.ordersectionsby "title"}}
121
121
{{ range $pages.ByTitle }}
Original file line number Diff line number Diff line change 67
67
{{if eq $.style "li"}}
68
68
< ul >
69
69
{{end}}
70
- {{ .Scratch.Set "pages" .Pages }}
70
+ {{ $.Page .Scratch.Set "pages" .Pages }}
71
71
{{ if .Sections}}
72
- {{ .Scratch.Set "pages" (.Pages | union .Sections) }}
72
+ {{ $.Page .Scratch.Set "pages" (.Pages | union .Sections) }}
73
73
{{end}}
74
- {{ $pages := (.Scratch.Get "pages") }}
74
+ {{ $pages := ($.Page .Scratch.Get "pages") }}
75
75
76
76
{{if eq $.sortTerm "Weight"}}
77
77
{{template "childs" dict "menu" $pages.ByWeight "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
You can’t perform that action at this time.
0 commit comments