-
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
Generating a sitemap #12
Comments
If you add a https://github.com/gatsbyjs/gatsby/blob/master/lib/utils/build.coffee#L30 See my personal blog where I generate an Atom feed https://github.com/KyleAMathews/blog/blob/master/post-build.coffee You're in node.js context here so you can write files to disk etc. |
Worked perfectly. Cheers for the responsiveness. |
JSYK I have a gist here with how to make a sitemap: https://gist.github.com/ivanoats/8d01d9e934fdc17bae9090147f1e799b |
I had to modify your work @ivanoats to the following to get it to work for me without setting up babel, etc. and rolling straight off a Gatsby starter template. Thanks for the foundation though! https://gist.github.com/chiedo/cd1e88ba3db440eb1f44fa6aaf8c3bd5 |
Nice. FWIW I wasn't using babel, just node 6 😎 |
Ahhh, that's makes sense @ivanoats :) |
Any advice on where to start on generating sitemap either during gatsby serve or build ?
Thinking of using gatsby for my blog: https://johnbrett.me/
The text was updated successfully, but these errors were encountered: