Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the order of "section menu" #142

Open
casperwang opened this issue Nov 22, 2020 · 1 comment
Open

How to change the order of "section menu" #142

casperwang opened this issue Nov 22, 2020 · 1 comment

Comments

@casperwang
Copy link

Hello~
I've created three "section menu" which is "About", "Archive" and "Home". And I want "Home" to stay at the top, what can I do to change the order of them? Thks

@rbnis
Copy link
Contributor

rbnis commented Jan 6, 2021

I don't know if it's relevatn to you, but for future reference you can use the weight parameter. Like this:

 [[menu.main]]
  identifier = "home"
  name = home"
  url = "/"
  weight = 10

[[menu.main]]
  identifier = "about"
  name = "about"
  url = "/about/"
  weight = 20

[[menu.main]]
  identifier = "archive"
  name = "archive"
  url = "/archive/"
  weight = 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants