Skip to content

feat: add optional tag-based RSS feed generation#2280

Open
suryaanshrai wants to merge 1 commit intojackyzha0:v4from
suryaanshrai:feature/tag-based-feeds
Open

feat: add optional tag-based RSS feed generation#2280
suryaanshrai wants to merge 1 commit intojackyzha0:v4from
suryaanshrai:feature/tag-based-feeds

Conversation

@suryaanshrai
Copy link
Copy Markdown

@suryaanshrai suryaanshrai commented Jan 17, 2026

Overview

As discussed in this issue -> #2168

Why this feature?

This will allow users to have tag based feeds.

Example usecase

A user can create a RSS feed based newsletter, only for the pages containing the tag blog in it.

Demo and Screenshots

Can checkout the implementation at my website, such as https://suryaansh.dev/tags/games/index.xml

Screenshot for reference:
image

Changes in this PR

  • Add includeTags, rssTagsLimit and rssTags options to ContentIndex plugin
  • Implement logic to generate RSS feeds for unique tags
  • Output feeds to 'tags//index.xml'
  • Support limiting the number of generated tag feeds
  • Supports generation of feed only for a list of tags

Default values for the options

{
    'includeTags': false,
    'rssTagsLimit': 15,
    'rssTags': []
}

Sample configuration

// In quartz.config.ts
Plugin.ContentIndex({
    enableRSS: true,
    includeTags: true,
    includeEmptyFiles: false,
    rssLimit: 15,
}),

Copilot AI review requested due to automatic review settings January 17, 2026 16:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for generating tag-based RSS feeds in Quartz, allowing users to create separate RSS feeds for specific tags or the most frequently used tags. This enables use cases like tag-specific newsletters (e.g., a feed for only "blog" tagged posts).

Changes:

  • Added three new configuration options: includeTags, rssTagsLimit, and rssTags to control tag-based RSS feed generation
  • Implemented logic to generate RSS feeds for individual tags at tags/<tag>/index.xml
  • Support for both explicit tag lists and automatic generation for top N tags by frequency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 17, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview a6e5c7c

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@suryaanshrai
Copy link
Copy Markdown
Author

Hey @jackyzha0 @saberzero1 any feedback on the PR? Just following up on it.

- Add 'rssTags' option to ContentIndex plugin for flexible tag-based RSS feeds
- Implement RSS feed generation for specific tags
- Add deduplication and slugification of tags
- Output feeds to 'tags/<tag>/index.xml'
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.

2 participants