Skip to content

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

Merged
vplasencia merged 1 commit into
mainfrom
fix/rss-feed-stale-pubdate
Jun 15, 2026
Merged

fix: RSS feed pubDates and exclude README (#672)#676
vplasencia merged 1 commit into
mainfrom
fix/rss-feed-stale-pubdate

Conversation

@heeckhau

@heeckhau heeckhau commented May 29, 2026

Copy link
Copy Markdown
Collaborator

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

vercel Bot commented May 29, 2026

Copy link
Copy Markdown

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

@vplasencia vplasencia merged commit dbc9a78 into main Jun 15, 2026
4 checks passed
@vplasencia vplasencia deleted the fix/rss-feed-stale-pubdate branch June 15, 2026 06:28
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

2 participants