fix sort by weight order

master
Robert Kaussow 2020-02-05 16:46:29 +01:00
parent 4236e5708b
commit 803dc97324
4 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
- BUGFIX - BUGFIX
- fix typos - fix typos
- fix sort by weight order

View File

@ -6,7 +6,7 @@
{{ $site := .site }} {{ $site := .site }}
<ul class="gdoc-nav__list"> <ul class="gdoc-nav__list">
{{ range sort (default (seq 0) .sect) "weight" "desc" }} {{ range sort (default (seq 0) .sect) "weight" }}
{{ $current.Scratch.Set "current" $current }} {{ $current.Scratch.Set "current" $current }}
{{ $current.Scratch.Set "site" $site }} {{ $current.Scratch.Set "site" $site }}

View File

@ -6,7 +6,7 @@
{{ $current := .current }} {{ $current := .current }}
<ul class="gdoc-nav__list"> <ul class="gdoc-nav__list">
{{ range .sect.GroupBy "Weight" "desc" }} {{ range .sect.GroupBy "Weight" }}
{{ range .ByTitle }} {{ range .ByTitle }}
{{ if not .Params.geekdocHidden }} {{ if not .Params.geekdocHidden }}
<li> <li>

View File

@ -12,7 +12,7 @@
{{ $current := .current }} {{ $current := .current }}
{{ $site := .site }} {{ $site := .site }}
{{ range sort (default (seq 0) .sect) "weight" "desc" }} {{ range sort (default (seq 0) .sect) "weight" }}
{{ $current.Scratch.Set "current" $current }} {{ $current.Scratch.Set "current" $current }}
{{ $current.Scratch.Set "site" $site }} {{ $current.Scratch.Set "site" $site }}