willfaught / paige

Powerful, pliable pixel perfection. An advanced Hugo theme.
https://willfaught.com/paige
MIT License
232 stars 50 forks source link

Feature Request: List Pages by Weight #50

Closed saurabh-sm closed 3 months ago

saurabh-sm commented 11 months ago

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 commented 11 months ago

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

willfaught commented 11 months ago

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

willfaught commented 11 months ago

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

saurabh-sm commented 11 months ago

Yes, it works!

saurabh-sm commented 3 months ago

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.