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

RSS Board Feed not showing most recent boards first #1354

Closed
DJDevon3 opened this issue Mar 21, 2024 · 4 comments · Fixed by #1355
Closed

RSS Board Feed not showing most recent boards first #1354

DJDevon3 opened this issue Mar 21, 2024 · 4 comments · Fixed by #1355
Labels
bug Something isn't working

Comments

@DJDevon3
Copy link

DJDevon3 commented Mar 21, 2024

I would like to see the RSS feed in the top right corner of the CircuitPython.org website to be updated with the latest added boards. This means sorting the RSS feed in chronological order. Most people expect an RSS feed to be in chronological order.

The alphabetical RSS feed gives the appearance of not being updated since May 2023 if the expectation is that an RSS feed is in chronological order. It gives the appearance of a dead RSS feed.

Capture

@makermelissa makermelissa changed the title Requesting Board RSS Feed sorted by publication date RSS Board Feed not showing recent boards Mar 21, 2024
@makermelissa makermelissa added the bug Something isn't working label Mar 21, 2024
@dhalbert
Copy link
Collaborator

So we would sort it by <pubDate>, most recent first.

@makermelissa
Copy link
Collaborator

makermelissa commented Mar 21, 2024

Yeah, that RSS feed is NOT sorting correctly.

@makermelissa makermelissa changed the title RSS Board Feed not showing recent boards RSS Board Feed not showing most recent boards first Mar 21, 2024
@FoamyGuy
Copy link
Contributor

I think one way to change this is with the loop here:

{% for board in site.board %}

This jekyl template docs page shows an example of ording by a specified field: https://carpentries-incubator.github.io/jekyll-pages-novice/arrays/index.html unfortunately it doesn't seem to have anchors for direct linking and it's near the bottom of the page, here is an excerpt of the relevant code:

{% assign sorted_posts = site.blogposts | sort: "author" %}
{% for post in sorted_posts %}

There is a warning that the sort operations with the | operator are not supported directly in the for loop so it must assign a new sorted list and then iterate over that.

@DJDevon3
Copy link
Author

DJDevon3 commented Mar 22, 2024

Today is March 22, 2024 so this looks to be updated with the latest boards. Now I have an RSS feed for CircuitPython.org latest added boards. This is great! Thank you.

Capture

Capture

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

Successfully merging a pull request may close this issue.

4 participants