fix sort by weight order
parent
4236e5708b
commit
803dc97324
|
@ -1,2 +1,3 @@
|
|||
- BUGFIX
|
||||
- fix typos
|
||||
- fix sort by weight order
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue