Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2020-02-05 18:46:29 +0300
committerRobert Kaussow <mail@geeklabor.de>2020-02-05 18:46:29 +0300
commit803dc97324f2fdc389f4a43b199eb6ad9f60d93b (patch)
treeae8370250e6023ee6cf7a8e34240887d92738af0
parent4236e5708b4f0bba3cbed770d574fc900259b4d4 (diff)
fix sort by weight orderv0.1.6
-rw-r--r--CHANGELOG.md1
-rw-r--r--layouts/partials/menu-bundle.html2
-rw-r--r--layouts/partials/menu-filetree.html2
-rw-r--r--layouts/partials/page-footer.html2
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 }}