-
target:
src code
maintained inmaster
branch and the generated blog content stays ingh-pages
branch. -
global config:
$HOME/.config/gatsby/config.json
:- add this if you prefer
yarn|npm
:"cli": { "packageManager": "yarn" }
- add this if you prefer
-
gatsby-config.js
:- add
pathPrefix: "/",
to the top withinmodule.exports
. - update everything of
siteMetadata
. - update
trackingId
forgatsby-plugin-google-analytics
. - add
gatsby-plugin-facebook-analytics
if needed. - add
gatsby-plugin-baidu-tongji
if needed. - update
gatsby-plugin-manifest
for names and icon and more needed.
- add
-
packages.json
:- add
gh-pages
todevDependencies
. - update
dependencies
version. - add a self-defined
deploy
toscripts
such as"deploy": "gitgit \"update\" && gatsby build --prefix-paths && gh-pages -d public"
.
- add
-
content
:- update
content/assets/logo.png
. - update
content/assets/logo_transparent.png
. - update
content/assets/profile-pic.png
. - the most important: add your blogging content to
content/blog/
.
- update
-
static
:- add
CNAME
: add thesubdomain
as the content. - update
favicon.ico
.
- add
-
update
src/
wherever possible such asindex, bio, layout, blog-post
files. -
generated folders:
public/
Last active
July 7, 2020 02:47
-
-
Save jhcao23/5cb42ef2b053db0f8446ced1d99bd6bc to your computer and use it in GitHub Desktop.
how to setup Gatsby blog quickly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment