diff options
author | Christopher Greaves <28542943+Chris-Greaves@users.noreply.github.com> | 2019-03-09 03:31:20 +0300 |
---|---|---|
committer | Matthew Taylor <matalo33@users.noreply.github.com> | 2019-04-16 20:45:22 +0300 |
commit | 55b1b8ee83b2bc3d780c58485a17911328cd008a (patch) | |
tree | 0999c871220993e706b4a04dfb657056a2ecf6bb /layouts | |
parent | 18212e67599813e4f97ecc66ebf3f8b32f54a0b5 (diff) |
fix issue where "children" shortcode only shows top level.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/children.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html index a1e31b2..fe20839 100644 --- a/layouts/shortcodes/children.html +++ b/layouts/shortcodes/children.html @@ -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}} |