Skip to content

fix(rss): ensure posts are sorted by date#327

Merged
darbyjack merged 2 commits into
mainfrom
fix/rss
Jul 1, 2026
Merged

fix(rss): ensure posts are sorted by date#327
darbyjack merged 2 commits into
mainfrom
fix/rss

Conversation

@darbyjack

Copy link
Copy Markdown
Member

This pull request updates the logic for generating the RSS feed to ensure posts are sorted by their publish date, improving the order of items in the feed.

Improvements to RSS feed generation:

  • Added a utility function getPostDate to consistently retrieve the publish date from each post, preferring pubDate and falling back to date if necessary.
  • Modified the posts retrieval logic to sort posts by publish date in descending order before mapping them to RSS items, ensuring the newest posts appear first in the feed.

Fixes #326

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
papermc-website 1124fd7 Commit Preview URL

Branch Preview URL
Jul 01 2026, 11:38 AM

@darbyjack darbyjack merged commit 35767d3 into main Jul 1, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

RSS broken

3 participants