diff options
author | Robert Kaussow <mail@geeklabor.de> | 2020-02-05 18:46:29 +0300 |
---|---|---|
committer | Robert Kaussow <mail@geeklabor.de> | 2020-02-05 18:46:29 +0300 |
commit | 803dc97324f2fdc389f4a43b199eb6ad9f60d93b (patch) | |
tree | ae8370250e6023ee6cf7a8e34240887d92738af0 | |
parent | 4236e5708b4f0bba3cbed770d574fc900259b4d4 (diff) |
fix sort by weight orderv0.1.6
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | layouts/partials/menu-bundle.html | 2 | ||||
-rw-r--r-- | layouts/partials/menu-filetree.html | 2 | ||||
-rw-r--r-- | layouts/partials/page-footer.html | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 471daec..3ea689b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,3 @@ - BUGFIX - fix typos + - fix sort by weight order diff --git a/layouts/partials/menu-bundle.html b/layouts/partials/menu-bundle.html index bda1c4e..37a1c08 100644 --- a/layouts/partials/menu-bundle.html +++ b/layouts/partials/menu-bundle.html @@ -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 }} diff --git a/layouts/partials/menu-filetree.html b/layouts/partials/menu-filetree.html index ea388ad..15e545f 100644 --- a/layouts/partials/menu-filetree.html +++ b/layouts/partials/menu-filetree.html @@ -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> diff --git a/layouts/partials/page-footer.html b/layouts/partials/page-footer.html index de88318..a072581 100644 --- a/layouts/partials/page-footer.html +++ b/layouts/partials/page-footer.html @@ -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 }} |