Comments (6)
If you add a post-build
file in the root of your site, you can do custom stuff like generate a sitemap and rss/atom feed.
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.
from gatsby.
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
from gatsby.
Worked perfectly. Cheers for the responsiveness.
from gatsby.
JSYK I have a gist here with how to make a sitemap: https://gist.github.com/ivanoats/8d01d9e934fdc17bae9090147f1e799b
from gatsby.
Nice. FWIW I wasn't using babel, just node 6 😎
from gatsby.
Ahhh, that's makes sense @ivanoats :)
from gatsby.
Related Issues (20)
- Skip media from download, get URL in query only
- Outdated reference to Gatsby Cloud in documentation HOT 1
- While shadowing a css file from a gatsby theme the changes are reflected in netlify preview but not on deployment HOT 4
- Null-Byte (\0) in HTML output files
- Missing onError handler for invocation 'building-schema', error was 'Error: Cannot create as TypeComposer the following value: Date.' HOT 1
- onClientEntry not called when using `gatsby develop`
- Redirects and Headers stopped working on Netlify (and work again in gatsby 5.12.12 / adapter 1.0.4) HOT 9
- Showcase page has some sites which are not using Gatsby js anymore, and still they are in Featured sites section HOT 4
- Show case crashed when search HOT 1
- gatsby-source-wordpress (v^7.13.1) incompatible with latest version of WPGraphQL HOT 1
- The repository archived babel-plugin-lodash is using the deprecated isModuleDeclaration.
- Compatibility issues between gatsby-plugin-mdx v5 and remark-gfm v4
- GatsbyImage process the image on build & build is slow HOT 5
- Media Image is null. HOT 1
- double rendering on mobile
- Error on gatsby build command : WebpackError: TypeError: Endpoint URL must start with `http:` or `https:`. HOT 1
- UNHANDLED REJECTION There is no worker with "1" id. when building on aws amplify
- Adding loading strategy to Gatsby GTM plugin (or any other script loader)
- After gatsby build and gserve: not able to access/use newly added files from the server.
- gatsby-plugin-page-creator: slugify.preserveCharacters does not have any effect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby.