Skip to content

Commit

Permalink
nav: prev/next ignores ordersectionby matcornic#320
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Aug 5, 2022
1 parent c27864d commit 3c9ff88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/page-meta.hugo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{- if $wantsSwagger }}
{{- $currentNode.Store.Set "hasSwagger" true }}
{{- 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" }}
{{- $currentNode := .currentnode }}
{{- $isSelf := eq $currentNode.RelPermalink .node.RelPermalink }}
Expand Down Expand Up @@ -61,9 +61,9 @@
{{- $defaultOrdersectionsby := .defaultOrdersectionsby }}
{{- $currentOrdersectionsby := .node.Params.ordersectionsby | default $defaultOrdersectionsby }}
{{- if eq $currentOrdersectionsby "title"}}
{{- $pages := $pages.ByTitle }}
{{- $pages = $pages.ByTitle }}
{{- else}}
{{- $pages := $pages.ByWeight }}
{{- $pages = $pages.ByWeight }}
{{- end }}
{{- range $pages }}
{{- template "relearn-structure" dict "node" . "currentnode" $currentNode "hiddenstem" $hidden_stem "hiddencurrent" $hidden_from_current "defaultOrdersectionsby" $defaultOrdersectionsby }}
Expand Down

0 comments on commit 3c9ff88

Please sign in to comment.