Skip to content

feat(blog): RSS feed per locale - #16

Merged
proggeramlug merged 1 commit into
mainfrom
feat/blog-rss
Oct 30, 2026
Merged

proggeramlug merged 1 commit into
mainfrom
feat/blog-rss

Conversation

@TheHypnoo

Copy link
Copy Markdown
Member

Summary

Adds an RSS 2.0 feed for the blog in every locale, as requested in #2.

 src/
 ├── layouts/Base.astro          # + <link rel="alternate" type="application/rss+xml">
 └── pages/[lang]/blog/
     ├── index.astro
+    └── rss.xml.ts               # /<lang>/blog/rss.xml

Each feed lists the same posts as that locale's blog index. Untranslated posts appear in English, as they do on the index. The feed is generated at build time without a new dependency (@astrojs/rss would add a package for about 30 lines of XML).

Closes #2

Evidence

  • Before: no feed. After: a local build outputs 13 feeds (/en/blog/rss.xml, /es/blog/rss.xml, …), each with 21 items, and all of them parse as valid XML.
  • Every page's <head> links the feed for its locale, e.g. <link rel="alternate" type="application/rss+xml" title="Perry Blog" href="/ja/blog/rss.xml">, so feed readers find it from any page URL.
  • server.ts already serves .xml files as application/xml.

Merge Danger

Door: two-way

Blast Radius: small

Only new files plus one <link> tag in the shared layout.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e0b8443d-0491-4de7-8d82-ab5c7ea75f93
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@proggeramlug
proggeramlug merged commit 9a63ad4 into main Oct 30, 2026
2 checks passed
@TheHypnoo
TheHypnoo deleted the feat/blog-rss branch October 30, 2026 14:34
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 feed for the blog

2 participants