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

Sort blog post newest-oldest #21

Open
pierrelefevre opened this issue May 2, 2024 · 12 comments
Open

Sort blog post newest-oldest #21

pierrelefevre opened this issue May 2, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@pierrelefevre
Copy link
Member

The news/blog posts are not ordered right, so if we set the weight to the iso timestamp it should fix that.

Example:
weight: 20240501

@pierrelefevre pierrelefevre added the bug Something isn't working label May 2, 2024
@harsha5500
Copy link
Contributor

Done, waiting for review

@harsha5500
Copy link
Contributor

Switched to incremental weights. Waiting for review.

@pierrelefevre
Copy link
Member Author

Hmm still upside down?
image

@harsha5500
Copy link
Contributor

Isnt it correct? I added lowest weight to the earliest one, i.e. the March breakdown was the first one.

@pierrelefevre
Copy link
Member Author

Wouldn't we want the most recent article at the top of the list?

@pierrelefevre
Copy link
Member Author

Can't find anything about reverse sorted sections https://themes.gohugo.io/themes/hugo-book/

@harsha5500
Copy link
Contributor

Well one way is to start from 1000 and count down 😺

@harsha5500
Copy link
Contributor

But that is a problem waiting to happen, if we end up writing a lot

@harsha5500
Copy link
Contributor

Default: Weight > Date > LinkTitle > FilePath

@pierrelefevre
Copy link
Member Author

Well one way is to start from 1000 and count down 😺

We can just add /NewerNews/2048-whatever then ;))

@pierrelefevre
Copy link
Member Author

newnews

@pierrelefevre pierrelefevre changed the title Set weight of blog posts as their iso date Sort blog post newest-oldest May 10, 2024
@saffronjam
Copy link
Member

Status of this issue? Seems like we can close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants