fix sort by weight order

uci-hugo-doc
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
- fix typos
- fix sort by weight order

View File

@ -6,7 +6,7 @@
{{ $site := .site }}
<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 "site" $site }}

View File

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

View File

@ -12,7 +12,7 @@
{{ $current := .current }}
{{ $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 "site" $site }}