mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-01 02:35:50 +08:00
arrow-nav: default sorting ignores ordersectionsby #63
This commit is contained in:
parent
39957388d4
commit
fc28f11f8b
@ -34,9 +34,15 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
{{ $pages := ($currentNode.Scratch.Get "pages") }}
|
||||||
|
|
||||||
{{ range $pages.ByWeight }}
|
{{if eq .Site.Params.ordersectionsby "title"}}
|
||||||
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
{{ range $pages.ByTitle }}
|
||||||
{{end}}
|
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
||||||
|
{{end}}
|
||||||
|
{{else}}
|
||||||
|
{{ range $pages.ByWeight }}
|
||||||
|
{{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }}
|
||||||
|
{{end}}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user