Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 593 Bytes

File metadata and controls

27 lines (21 loc) · 593 Bytes

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.