mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
arrow-nav: default sorting ignores ordersectionsby #63
This commit is contained in:
parent
39957388d4
commit
fc28f11f8b
1 changed files with 9 additions and 3 deletions
|
@ -34,11 +34,17 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
||||||
|
|
||||||
|
{{if eq .Site.Params.ordersectionsby "title"}}
|
||||||
|
{{ range $pages.ByTitle }}
|
||||||
|
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
||||||
|
{{end}}
|
||||||
|
{{else}}
|
||||||
{{ range $pages.ByWeight }}
|
{{ range $pages.ByWeight }}
|
||||||
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}}
|
{{$showPrevNext := (and (not .Params.disableNextPrev) (not .Site.Params.disableNextPrev))}}
|
||||||
{{if $showPrevNext}}
|
{{if $showPrevNext}}
|
||||||
|
|
Loading…
Reference in a new issue