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

News items are not being sorted by year #14

Open
PatrickOHara opened this issue Feb 13, 2020 · 1 comment
Open

News items are not being sorted by year #14

PatrickOHara opened this issue Feb 13, 2020 · 1 comment
Assignees

Comments

@PatrickOHara
Copy link
Member

See the news_update_feb branch for an example. The 2020 news items appear after 2018 and 2019.

@dead-water is there a quick fix for this? I used to have a javascript function to sort by date but you added something else in news.html

@dead-water
Copy link
Member

There's a bug in the year grouping with liquid, it needs to find 2020 in the list first to know to sort by it for some reason. Tried forcing a sort to no avail, stopgap for now was to just put a more recent news item at the top of the data/news.json file

Will revisit when we have capacity

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