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