fix condition to determine next-prev entry for filetree (#724)
This commit is contained in:
parent
712be2e2a7
commit
1266dd4287
1 changed files with 5 additions and 5 deletions
|
@ -56,9 +56,9 @@
|
||||||
{{ $name := $current.Scratch.Get "refName" }}
|
{{ $name := $current.Scratch.Get "refName" }}
|
||||||
|
|
||||||
{{ if $current.Scratch.Get "getNext" }}
|
{{ if $current.Scratch.Get "getNext" }}
|
||||||
{{ if $this.Content }}
|
{{ if or $this.Content $this.Params.geekdocFlatSection }}
|
||||||
{{ $current.Scratch.Set "nextPage" (dict "name" $name "this" $this) }}
|
{{ $current.Scratch.Set "nextPage" (dict "name" $name "this" $this) }}
|
||||||
{{ $current.Scratch.Set "getNext" false }}
|
{{ $current.Scratch.Set "getNext" false }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -67,8 +67,8 @@
|
||||||
{{ $current.Scratch.Set "getNext" true }}
|
{{ $current.Scratch.Set "getNext" true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $this.Content }}
|
{{ if or $this.Content $this.Params.geekdocFlatSection }}
|
||||||
{{ $current.Scratch.Set "prev" (dict "name" $name "this" $this) }}
|
{{ $current.Scratch.Set "prev" (dict "name" $name "this" $this) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $sub := and (ne $numberOfPages 0) (not .Params.geekdocFlatSection) }}
|
{{ $sub := and (ne $numberOfPages 0) (not .Params.geekdocFlatSection) }}
|
||||||
|
|
Loading…
Reference in a new issue