mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
nav: prev/next ignores ordersectionby #320
This commit is contained in:
parent
c27864d23a
commit
3c9ff888cb
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@
|
||||||
{{- if $wantsSwagger }}
|
{{- if $wantsSwagger }}
|
||||||
{{- $currentNode.Store.Set "hasSwagger" true }}
|
{{- $currentNode.Store.Set "hasSwagger" true }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- template "relearn-structure" dict "node" .Site.Home "currentnode" $currentNode "hiddenstem" false "hiddencurrent" false "defaultOrdersectionsby" .Site.Params.ordersectionsby }}
|
{{- template "relearn-structure" dict "node" .Site.Home "currentnode" $currentNode "hiddenstem" false "hiddencurrent" false "defaultOrdersectionsby" (.Site.Params.ordersectionsby | default "weight") }}
|
||||||
{{- define "relearn-structure" }}
|
{{- define "relearn-structure" }}
|
||||||
{{- $currentNode := .currentnode }}
|
{{- $currentNode := .currentnode }}
|
||||||
{{- $isSelf := eq $currentNode.RelPermalink .node.RelPermalink }}
|
{{- $isSelf := eq $currentNode.RelPermalink .node.RelPermalink }}
|
||||||
|
@ -61,9 +61,9 @@
|
||||||
{{- $defaultOrdersectionsby := .defaultOrdersectionsby }}
|
{{- $defaultOrdersectionsby := .defaultOrdersectionsby }}
|
||||||
{{- $currentOrdersectionsby := .node.Params.ordersectionsby | default $defaultOrdersectionsby }}
|
{{- $currentOrdersectionsby := .node.Params.ordersectionsby | default $defaultOrdersectionsby }}
|
||||||
{{- if eq $currentOrdersectionsby "title"}}
|
{{- if eq $currentOrdersectionsby "title"}}
|
||||||
{{- $pages := $pages.ByTitle }}
|
{{- $pages = $pages.ByTitle }}
|
||||||
{{- else}}
|
{{- else}}
|
||||||
{{- $pages := $pages.ByWeight }}
|
{{- $pages = $pages.ByWeight }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- range $pages }}
|
{{- range $pages }}
|
||||||
{{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current "defaultOrdersectionsby" $defaultOrdersectionsby }}
|
{{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current "defaultOrdersectionsby" $defaultOrdersectionsby }}
|
||||||
|
|
Loading…
Reference in a new issue