fix condition to determine next-prev entry for filetree (#724)

This commit is contained in:
Robert Kaussow 2023-10-20 10:23:38 +02:00 committed by GitHub
parent 712be2e2a7
commit 1266dd4287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@
{{ $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 }}
@ -67,7 +67,7 @@
{{ $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 }}