
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gatsby-plugin-feed
Advanced tools
Create an RSS feed (or multiple feeds) for your Gatsby site.
npm install --save gatsby-plugin-feed
// In your gatsby-config.js
siteMetadata {
title: `GatsbyJS`,
description: `A fantastic new static site generator.`,
site_url: `https://www.gatsbyjs.org`
},
plugins: [
{
resolve: `gatsby-plugin-feed`
}
]
Above is the minimal configuration required to begin working. If you wish to customize the query being executed to retrieve nodes, try this:
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-feed`,
options: {
query: `
{
site {
siteMetadata {
title
description
site_url
}
}
}
`,
feeds: [
{
query: `
{
allMarkdownRemark(
limit: 1000,
sortBy: { order: DESC, fields: [frontmatter___date] },
frontmatter: { draft: { ne: true } }
) {
edges {
node {
excerpt
html
fields { slug }
frontmatter {
title
date
}
}
}
}
}
`,
output: '/rss.xml'
}
]
}
}
]
FAQs
Creates an RSS feed for your Gatsby site.
The npm package gatsby-plugin-feed receives a total of 16,242 weekly downloads. As such, gatsby-plugin-feed popularity was classified as popular.
We found that gatsby-plugin-feed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.