mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
Fix in children shortcode (random failures during generation of description paragraph)
This commit is contained in:
parent
12cab1bed6
commit
57ffb7bd68
1 changed files with 3 additions and 3 deletions
|
@ -67,11 +67,11 @@
|
|||
{{if eq $.style "li"}}
|
||||
<ul>
|
||||
{{end}}
|
||||
{{ .Scratch.Set "pages" .Pages }}
|
||||
{{ $.Page.Scratch.Set "pages" .Pages }}
|
||||
{{ if .Sections}}
|
||||
{{ .Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{ $.Page.Scratch.Set "pages" (.Pages | union .Sections) }}
|
||||
{{end}}
|
||||
{{ $pages := (.Scratch.Get "pages") }}
|
||||
{{ $pages := ($.Page.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