Skip to content

sdv-dev/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 26, 2022
4aca24b · Sep 26, 2022

History

92 Commits
Feb 9, 2022
Apr 21, 2021
Apr 18, 2021
Sep 26, 2022
Jun 17, 2021
Apr 18, 2021
Apr 5, 2021
Nov 16, 2021
Apr 18, 2021
Jun 15, 2021
Mar 2, 2022
Jun 15, 2021
Apr 5, 2021
Apr 18, 2021
Mar 2, 2022
Apr 18, 2021
Apr 18, 2021

Repository files navigation

SDV Blog

https://sdv.dev/web-dev/

Installing

Then install dependencies

yarn

 

Running

Start the development server. You now have a Gatsby site pulling content from headless Ghost.

gatsby develop

Deploying to Github Pages

npm run deploy

 

Optimising

You can disable the default Ghost Handlebars Theme front-end by enabling the Make this site private flag within your Ghost settings. This enables password protection in front of the Ghost install and sets <meta name="robots" content="noindex" /> so your Gatsby front-end becomes the source of truth for SEO.

 

Extra options

# Run a production build, locally
gatsby build

# Serve a production build, locally
gatsby serve

Gatsby develop uses the development config in .ghost.json - while Gatsby build uses the production config.