https://github.com/sdv-dev/web-dev
Website development branch
https://github.com/sdv-dev/web-dev
Last synced: 4 months ago
JSON representation
Website development branch
- Host: GitHub
- URL: https://github.com/sdv-dev/web-dev
- Owner: sdv-dev
- Created: 2021-03-30T17:41:02.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T19:00:24.000Z (almost 4 years ago)
- Last Synced: 2025-01-01T22:43:01.004Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 21.7 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SDV Blog
*https://sdv.dev/web-dev/*
# Installing
Then install dependencies
```bash
yarn
```
# Running
Start the development server. You now have a Gatsby site pulling content from headless Ghost.
```bash
gatsby develop
```
# Deploying to Github Pages
```bash
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 `` so your Gatsby front-end becomes the source of truth for SEO.
# Extra options
```bash
# 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.