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

Menu weights have no effect #51

Closed
martinclauss opened this issue Jul 31, 2024 · 3 comments
Closed

Menu weights have no effect #51

martinclauss opened this issue Jul 31, 2024 · 3 comments

Comments

@martinclauss
Copy link

Hey :)

Using this config:

[menu]

  [[menu.main]]
    identifier = "post"
    name = "Blog"
    pageRef = "/posts"
    weight = 0 

  [[menu.main]]
    identifier = "about"
    name = "About"
    pageRef = "/about"
    weight = 10

  [[menu.main]]
    identifier = "contact"
    name = "Contact"
    pageRef = "/contact"
    weight = 20 

with different weights has no effect on the order. The version is main.

@tomowang
Copy link
Owner

tomowang commented Aug 1, 2024

Weight is a non-zero integer. See 189d700

@martinclauss
Copy link
Author

Thanks :) Could you update the documentation (README.md) accordingly?

weight = 0

@tomowang
Copy link
Owner

tomowang commented Aug 1, 2024

Wow, I must forget the doc part. I'll update it later. Thanks for reporting.

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