Skip to content

fix: RSS feed pubDates and exclude README (#672)#676

Open
heeckhau wants to merge 1 commit into
mainfrom
fix/rss-feed-stale-pubdate
Open

fix: RSS feed pubDates and exclude README (#672)#676
heeckhau wants to merge 1 commit into
mainfrom
fix/rss-feed-stale-pubdate

Conversation

@heeckhau
Copy link
Copy Markdown
Collaborator

@heeckhau heeckhau commented May 29, 2026

Fixes #672.

Summary

  • The feed was stamping stale posts with build time, so they kept surfacing as "new" in aggregators on every rebuild. Root cause: YAML auto-parses unquoted YYYY-MM-DD frontmatter into Date objects, but lib/rss.ts's parser only handled strings — .split("-") on a Date failed and the code fell back to new Date(). Two articles (summon-major-update.md, post-quantum-signature-aggregation-with-falcon-and-LaBRADOR.md) had unquoted dates and were the visible offenders.
  • The feed also contained an "Untitled Article" entry pointing at /blog/README (a 404).

Changes

  • lib/rss.ts: parser now accepts Date and string, and returns null on failure — articles with no/invalid date are skipped, not stamped with build time.
  • lib/rss.ts: exclude readme, _readme, _article-template slugs at the collection step (matches the convention in lib/content.ts).
  • Quoted the two unquoted dates in the affected article files to match every other article.

YAML parses unquoted YYYY-MM-DD dates as Date objects, but the feed's
parser only handled strings and fell back to `new Date()`, so those
posts were stamped with build time and surfaced as new on every
rebuild. Also drops the README "Untitled Article" entry.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pse-dev Ready Ready Preview, Comment May 29, 2026 12:03pm
website-v2-production Ready Ready Preview, Comment May 29, 2026 12:03pm

Request Review

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.

Fix blog RSS feed

1 participant