-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
41,374 additions
and
1,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"development": { | ||
"apiUrl": "https://sdv.ghost.io", | ||
"contentApiKey": "68a3f60d2555e5dff8a5df9e11" | ||
}, | ||
"production": { | ||
"apiUrl": "https://sdv.ghost.io", | ||
"contentApiKey": "68a3f60d2555e5dff8a5df9e11" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,46 @@ | ||
# web-dev | ||
# SDV Blog | ||
|
||
*https://sdv.dev/web-dev/* | ||
*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 `<meta name="robots" content="noindex" />` 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Oops, something went wrong.