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

Feature Request: List Pages by Weight #50

Closed
saurabh-sm opened this issue Oct 6, 2023 · 5 comments
Closed

Feature Request: List Pages by Weight #50

saurabh-sm opened this issue Oct 6, 2023 · 5 comments

Comments

@saurabh-sm
Copy link

The pages located here have a weight associated with them.

But in this listing on the example site, they appear to be listed by most recently updated.

Listing pages by weight would provide a way to order topics of a section, by difficulty for example.

@willfaught
Copy link
Owner

willfaught commented Oct 10, 2023

Good catch! Perhaps the group-by-month functionality drops the weight ordering. I'll have to look into this.

@willfaught
Copy link
Owner

https://discourse.gohugo.io/t/page-order-isnt-the-default-with-groupbypublishdate-and-page-weights/46635

@willfaught
Copy link
Owner

This should be fixed in v0.71.2. @saurabh-mish Can you confirm?

@saurabh-sm
Copy link
Author

Yes, it works!

@saurabh-sm
Copy link
Author

saurabh-sm commented May 25, 2024

This doesn't seem to be working at the moment.

I have sections similar to the content section, and their _index.md file has some content text in them as opposed to just having description and title in the front matter.

I have about 40 pages in each section and would like to know the right way to weight them - increments of 1, 5, 10, etc.


Edit: This may have been a Hugo caching issue.

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