The average enterprise on Netlify ships 140 times per week. Where does your team rank?

ContactSign Up
Community Plugin
View plugin on GitHub


Create a sitemap for your Gatsby site.

The plugin is a fork of gatsby-plugin-sitemap . This forked version has support multiple languages support, designed for aftership.

🧸How to use it?

1.create a gatsby project
gatsby new demo
cd demo
2. install package
# npm
npm i gatsby-plugin-multi-language-sitemap
# yarn
yarn add gatsby-plugin-multi-language-sitemap
3. config sitemap plugin at gatsby-config.js
module.exports = {
  plugins: [
      resolve: `gatsby-plugin-multi-language-sitemap`,
      options: {
        output: '/',
        query: `
          query {
            allSitePage {
              nodes {
            site {
              siteMetadata {
        langs: ['en', 'de', 'fr', 'es', 'zh-Hant', 'zh-Hans'],

The plugin distinguish the language by the url prefix.

For example, if your url like below format. The sitemap plugin will take effect.

and the langs param will be

langs: ['en', 'fr', 'zh-Hans', 'jp']
4. run commands below, you can see the sitemap in /public/ folder, sitemap-index.xml x-default-sitemap.xml screenshot below.
yarn build



© 2023 Gatsby, Inc.