-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] gatsby-plugin-sitemap does not work #1271
Comments
Looks like you're using an older version of the plugin. Check you're on the latest beta. Also you can always pass in a custom query if the default query isn't working https://github.com/gatsbyjs/gatsby/blob/1.0/packages/gatsby-plugin-sitemap/src/internals.js |
There's also an example site for this plugin. https://github.com/gatsbyjs/gatsby/tree/1.0/examples/sitemap |
Weird @KyleAMathews I'm on @next. Maybe I'm doing something dumb. I'll revisit on a fresh mind. |
Thanks for your quick responses by the way @KyleAMathews :) Great work on this project |
It just clicked @KyleAMathews. Got it working! I was making incorrect assumptions about the default query even after looking at it in the source code. I personally think it would be better if the default query didn't have the filter in the query. What do you think? If you agree, I'll remove it and do a PR, that way it would work out the box for more people. I ultimately had to remove the draft filter. I ended up with this
|
There's this #1131 |
Perfect @KyleAMathews |
What would you think about this default? This is what I'm using on my site now so all my pages are included in the sitemap @KyleAMathews as opposed to just the blog page
|
Whenever I have the sitemap plugin activated, the build doesn't work.
The error I get from the gatsby-starter-blog site on the 1.0 branch after adding the plugin exactly as shown in the documentation.
The text was updated successfully, but these errors were encountered: