Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index page not included in sitemap #115

Open
YoungiiJC opened this issue Nov 30, 2020 · 0 comments
Open

Index page not included in sitemap #115

YoungiiJC opened this issue Nov 30, 2020 · 0 comments

Comments

@YoungiiJC
Copy link

YoungiiJC commented Nov 30, 2020

Issue Summary

Plugin does not generate src/pages/index. i.e. sitemap is missing the root url.

To Reproduce

Here's my config + gatsby-plugin-sitemap (for comparison):

{
      resolve: `gatsby-plugin-advanced-sitemap`,
      options: {
        exclude: [`/team`, `/team/`, `/dev-404-page/`, `/404/`, `/404.html`],
        query: `{
          allPublishedTeams {
            edges {
              node {
                id
                slug
                image
              }
            }
          }
        }`,
        mapping: {
          allPublishedTeams: {
            sitemap: `teams`,
          },
        },
      },
    },
    {
      resolve: `gatsby-plugin-sitemap`,
      options: {
        output: `/some-other-sitemap.xml`,
      },
    },

gatsby-plugin-advanced-sitemap generates:
Screen Shot 2020-11-30 at 3 03 13 PM

gatsby-plugin-sitemap spits out:
Screen Shot 2020-11-30 at 3 03 53 PM

Technical details:

  • Gatsby Version: ^2.12.1
  • Node Version: 14.4.0
  • React / Typescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant