mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
fix issue where "children" shortcode only shows top level.
This commit is contained in:
parent
18212e6759
commit
55b1b8ee83
1 changed files with 3 additions and 3 deletions
|
@ -67,11 +67,11 @@
|
|||
{{if eq $.style "li"}}
|
||||
<ul>
|
||||
{{end}}
|
||||
{{ $.Page.Scratch.Set "pages" .Pages }}
|
||||
{{ .Scratch.Set "pages" .Pages }}
|
||||
{{ if .Sections}}
|
||||
{{ $.Page.Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{ .Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{end}}
|
||||
{{ $pages := ($.Page.Scratch.Get "pages") }}
|
||||
{{ $pages := (.Scratch.Get "pages") }}
|
||||
|
||||
{{if eq $.sortTerm "Weight"}}
|
||||
{{template "childs" dict "menu" $pages.ByWeight "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
|
||||
|
|
Loading…
Reference in a new issue