New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide ability to filter RSS / Atom feed #8376
Comments
These kinds of callback-based APIs are hard to design properly, but I agree with the motivation. Waiting for more ideas from @slorber. I'm wondering: how do other sites handle this? Do they truncate their feeds to the nearest x entries? |
From generally looking around there seems to be a latest X entries approach as well as a "paging" approach. Though, from what I've read the paging approach is not well supported. The approach I've suggested is a I've an idea to drive filtering based on the last git commit in a similar fashion to what I do here: https://blog.johnnyreilly.com/2022/11/25/adding-lastmod-to-sitemap-git-commit-date Might be nice to update the Atom / RSS feeds based on this too |
Did some googling and what I understand=
That seems reasonable to add such a feature to me 👍 |
Resolved by #8378 |
Have you read the Contributing Guidelines on issues?
Description
My blog turns out to be quite large. It was recently brought to my attention that the RSS feed wasn't working well for readers as a consequence.
At present, Docusaurus includes all blog entries in the Atom / RSS feeds: https://docusaurus.io/docs/blog#feed
The proposal is to add another option to support filtering the responses in the feed. This would allow people to reduce the size of their blogs when they become large.
Has this been requested on Canny?
No
Motivation
see description.
API design
Consider the below type with a new
filter
option:This could then be used like this:
Have you tried building it?
No - but I would. I've built a workaround in my blog: johnnyreilly/blog.johnnyreilly.com#352Yes: see #8378
Self-service
The text was updated successfully, but these errors were encountered: