Skip to content

Commit

Permalink
test blog code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dzinemon committed Dec 9, 2021
1 parent 8774db5 commit 4140fff
Show file tree
Hide file tree
Showing 89 changed files with 41,374 additions and 1,781 deletions.
10 changes: 10 additions & 0 deletions .ghost.json
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"
}
}
14 changes: 12 additions & 2 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Update Website
name: Build and Deploy SDV Blog

on:
push:
branches:
main
- ghost-blog
- main
repository_dispatch:
branches:
- ghost-blog
- main
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,3 +18,8 @@ jobs:
with:
access-token: ${{ secrets.BLOG_TOKEN }}
deploy-branch: gh-pages
gatsby-args: --prefix-paths

env:
SITEURL: ${{ secrets.SITEURL }}
SITEPATH: ${{ secrets.SITEPATH }}
47 changes: 45 additions & 2 deletions README.md
100644 → 100755
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.

&nbsp;

# 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.
3 changes: 3 additions & 0 deletions assets/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/sdv-blog-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified gatsby-browser.js
100644 → 100755
Empty file.
Loading

0 comments on commit 4140fff

Please sign in to comment.