Skip to content

pawelwos/gatsby-wordpress--yaml-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatsby

Gatsby Default Starter driven by YAML files geneated by Wordpress CMS

This wordpress theme is designed to be a source API for my GatsbyJs YAML starter (see wordpress branch). I use Timber for custom routes and YAML files boilerplates (see /twig/api folder). So we have special API urls https://cms.pawelwos.com/api/pages and https://cms.pawelwos.com/api/sections which are the source endpoints for gatsbyjs. Gatsby downloads these YAML files on onPreBootstrap building stage and then use them for GraphQL. This theme is taking care of changing inline links and inline images to Gatsby's <Link> and <GatsbyImage> components. It also have a preview mode which loads any CMS changes using AJAX function in wordpress so no need for any additional builds and you can check what you are creating immediately.

Demo site: https://gatsby.pawelwos.com

Demo CMS: https://cms.pawelwos.com/wp-admin

Username: tester
Password: testthis

About

A Gatsby YAML starter driven by wordpress CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published