Skip to content

Latest commit

 

History

History

gatsby-plugin-sitemap

gatsby-plugin-sitemap

Create a sitemap for your Gatsby site.

Install

npm install --save gatsby-plugin-sitemap

How to Use

// In your gatsby-config.js
siteMetadata: {
  siteUrl: `https://www.example.com`,
},
plugins: [
  {
    resolve: `gatsby-plugin-sitemap`
  }
]

Above is the minmal configuration required to have it work, however, note that the default query only retrieves nodes of type MarkdownRemark. Any parameter in defaultOptions can be overridden.