The internals for gatsby-plugin-feed seem to indicate that we can set a limit on the number of posts that show up in the feed:
{
// Create a default RSS feed. Others may be added by using the format below.
feeds: [
{
query: `
{
allMarkdownRemark(
limit: 1000,
sort: {
order: DESC,
fields: [frontmatter___date]
}
) {
edges {
node {
frontmatter {
title
date
}
fields {
slug
}
excerpt
html
}
}
}
}
`,
...
]
}
When I try to change limit
to 10
in my own definition within gatsby-config.js
, it seems to have no effect. Is there a standard way to limit the number of items in the RSS feed so that I don't have 250+ posts in there?