zgordon / tabor-gatsby-theme

A port of the Tabor WordPress Theme over to Gatsby
77 stars 23 forks source link

Static page as default instead of post archive #13

Open mimischi opened 5 years ago

mimischi commented 5 years ago

Thanks for the great theme! Just started with Gatsby and got the following two questions:

1) How do I display a static page as the default page, instead of the posts archive? I can change posts/archive.js to update the current default page (https://localhost:8000/), but I would rather think that should be the responsibility of a file in the pages/ directory? 2) Can I actually get the default static page defined in the Wordpress backend (Settings -> Reading -> Your homepage displays) from the WPGraphQL? Or do I currently need to hardcode which page should be the default for the Gatsby frontend?