diff options
author | Simon Morgan <sjm@sjm.io> | 2017-08-31 15:12:55 +0300 |
---|---|---|
committer | Simon Morgan <sjm@sjm.io> | 2017-08-31 15:12:55 +0300 |
commit | 6897524f01b277e99f61200e55ed719e691cde2f (patch) | |
tree | 6c68ec3a15c58c59bdbff150baaba34e3c34914f /exampleSite | |
parent | 307ad99b0ff51a3641d7792ddf4941a650e4cd92 (diff) |
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.
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1491acf..c746abc 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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] |