Proof of Concept - Gatsby + Headless WordPress + Twenty Nineteen
An example site using that uses Gatsby and a headless WordPress installation to re-create the Twenty Nineteen theme.
Note: This is entirely intended to be a proof of concept/example of how Gatsby can be used to create a frontend for WordPress. It is not checked for stability or security (or even code quality), so use it at your own risk.
- Post templates
- Category archives
- Author archives
- Static (server side) comment rendering
- Dynamic (client side) comment rendering
- Comment submissions
- Uses WPGraphQL
- General cleanup
- Better comments
- Comment replies
- Gravatars/user icons
- Gatsby CLI
- A WordPress installation with the WPGraphQL plugin installed and activated
Once again, this isn't intended to be a production-ready example. It's best used as a starting point for learning how to connect a WordPress backend to a Gatsby frontend. If you want to build it, do this:
- Clone the repo.
config.jsto point to your WordPress site as the source.
- Navigate your browser to http://localhost:8000
- Use it to build your own Gatsby frontend for your WordPress site.