Skip to content

Blog feed: add a first-class API to limit size of the RSS / Atom feeds #9179

@slorber

Description

@slorber

Have you read the Contributing Guidelines on issues?

Description

Add an option: feed.limit: number | false | null = 20

Don't put all the blog posts in the feed by default

  • 20 = default value
  • false | null = no limit

See also my comments here:

#8378 (comment)

Has this been requested on Canny?

No response

Motivation

The RSS/Atom feeds files are too big for sites with large blogs, notably because the feeds contain the blog content.

It's not super useful to have everything inside the feed, and having the last 20 blog posts by default is good enough.

See #8378 (comment)

API design

No response

Have you tried building it?

No response

Self-service

  • I'd be willing to contribute this feature to Docusaurus myself.

Metadata

Metadata

Assignees

Labels

featureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions