diff --git a/README.md b/README.md index eeca20f76..f19ac2463 100644 --- a/README.md +++ b/README.md @@ -178,15 +178,18 @@ paginate = 5 # path = "/img/your-example-logo.svg" # alt = "Your example logo alt text" + # `weight` is used to sord menu items. https://gohugo.io/variables/menus/ [languages.en.menu] [[languages.en.menu.main]] identifier = "about" name = "About" url = "/about" + weight = 1 [[languages.en.menu.main]] identifier = "showcase" name = "Showcase" url = "/showcase" + weight = 0 ``` to `config.toml` file in your Hugo root directory and change params fields. In case you need, here's [a YAML version](https://gist.github.com/panr/8f9b363e358aaa33f6d353c77feee959). diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 660e02e7e..8d17bbff1 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,7 +1,7 @@