Permalink
Browse files

Fix menu order by using correct weight values

According to
https://discourse.gohugo.io/t/menu-weight-and-other-oddity/5653/2 menu
weights should start at 1 as 0 is treated as the absence of a value.
  • Loading branch information...
drguildo committed Aug 31, 2017
1 parent 307ad99 commit 6897524f01b277e99f61200e55ed719e691cde2f
Showing with 8 additions and 8 deletions.
  1. +4 −4 README.md
  2. +4 −4 exampleSite/config.toml
View
@@ -99,25 +99,25 @@ paginate = 10
[[menu.main]]
name = "Home"
pre = "<i class='fa fa-home fa-fw'></i>"
weight = 0
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
pre = "<i class='fa fa-list fa-fw'></i>"
weight = 1
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 2
weight = 3
identifier = "about"
url = "/about/"
[[menu.main]]
name = "Contact"
pre = "<i class='fa fa-phone fa-fw'></i>"
weight = 3
weight = 4
url = "/contact/"
[social]
View
@@ -26,25 +26,25 @@ paginate = 10
[[menu.main]]
name = "Home"
pre = "<i class='fa fa-home fa-fw'></i>"
weight = 0
weight = 1
identifier = "home"
url = "/"
[[menu.main]]
name = "Posts"
pre = "<i class='fa fa-list fa-fw'></i>"
weight = 1
weight = 2
identifier = "post"
url = "/post/"
[[menu.main]]
name = "About"
pre = "<i class='fa fa-user fa-fw'></i>"
weight = 2
weight = 3
identifier = "about"
url = "/about/"
[[menu.main]]
name = "Contact"
pre = "<i class='fa fa-phone fa-fw'></i>"
weight = 3
weight = 4
url = "/contact/"
[social]

0 comments on commit 6897524

Please sign in to comment.