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

Issue #697: Add setting order_sections_by_date #703

Closed
wants to merge 1 commit into from

Conversation

micw
Copy link

@micw micw commented Jul 18, 2024

Fixes #697

Copy link

netlify bot commented Jul 18, 2024

Deploy Preview for gohugo-ananke-theme-demo ready!

Name Link
🔨 Latest commit 4daa604
🔍 Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/6699194cc330d00008966c38
😎 Deploy Preview https://deploy-preview-703--gohugo-ananke-theme-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@davidsneighbour davidsneighbour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will lead to some convoluted list of options to order by. How about using a better form like this:

site.Params.default_order_by = 'date'
site.Params.default_order_direction = 'desc'

where default_order_by can be something along the lines of date, title, lastchanged, etc. and default_order_direction can be one of asc, desc, or weight with weight using an additional parameter weight for order?

@davidsneighbour davidsneighbour added the Waiting Waiting on a response or other action label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting Waiting on a response or other action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to order sections by date for index.html
2 participants