Skip to content

Commit

Permalink
Start menu weigth to 1 and not 0
Browse files Browse the repository at this point in the history
Since _Hugo_ 0.19 menu weigth can't start with 0 (https://discuss.gohugo.io/t/menu-weight-and-other-oddity/5653/2)

fixes kakawait#149
  • Loading branch information
kakawait committed Apr 16, 2017
1 parent 645b478 commit d95772d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,51 +47,51 @@ canonifyurls = true

# Menu Configuration
[[menu.main]]
weight = 0
weight = 1
identifier = "home"
name = "Home"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-home\"></i>"
url = "/"
[[menu.main]]
weight = 1
weight = 2
identifier = "categories"
name = "Categories"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-bookmark\"></i>"
url = "/categories"
[[menu.main]]
weight = 2
weight = 3
identifier = "tags"
name = "Tags"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-tags\"></i>"
url = "/tags"
[[menu.main]]
weight = 3
weight = 4
identifier = "archives"
name = "Archives"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-archive\"></i>"
url = "/archives"
[[menu.main]]
weight = 4
weight = 5
identifier = "about"
name = "About"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-question\"></i>"
url = "/#about"

[[menu.links]]
weight = 0
weight = 1
identifier = "github"
name = "GitHub"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-github\"></i>"
url = "https://github.com/kakawait"
[[menu.links]]
weight = 1
weight = 2
identifier = "stackoverflow"
name = "Stack Overflow"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-stack-overflow\"></i>"
url = "https://stackoverflow.com/users/636472/kakawait"

[[menu.misc]]
weight = 0
weight = 1
identifier = "rss"
name = "RSS"
pre = "<i class=\"sidebar-button-icon fa fa-lg fa-rss\"></i>"
Expand Down

0 comments on commit d95772d

Please sign in to comment.