๐ Quick Start
1. Development
cd my-blog-starter/
yarn dev
# open localhost:8000
3. Add your content
You can write...
- contents to blog in
content/blog
directory. - resume
content/__about
directory.
With markdown syntax and some meta data
Support script for creating new post
npm run post
๐ Use gatsby-post-gen (https://github.com/JaeYeopHan/gatsby-post-gen)
4. Fix meta data
You can fix meta data of blog in /gatsby-meta-config.js
file.
5. Publish with github pages
๐ก if you want to deploy github pages, add following script to package.json
"scripts": {
"deploy": "gatsby build && gh-pages -d public -b master -r '[email protected]:${your github id}/${github page name}.github.io.git'"
}
๐ง Customize
โ Gatsby config
/root
โโโ gatsby-browser.js // font, polyfill, onClientRender ...
โโโ gatsby-config.js // Gatsby config
โโโ gatsby-meta-config.js // Template meta config
โโโ gatsby-node.js // Gatsby Node config
โ Structure
src
โโโ components // Just component with styling
โโโ layout // home, post layout
โโโ pages // routing except post: /(home), /about
โโโ styles
โ โโโ code.scss
โ โโโ dark-theme.scss
โ โโโ light-theme.scss
โ โโโ variables.scss
โโโ templates
โโโ blog-post.js
โโโ home.js
๐จ Style
You can customize color in src/styles
directory.
src/styles
โโโ code.scss
โโโ dark-theme.scss
โโโ light-theme.scss
โโโ variables.scss
๐ญ Tips (You can change...)
- Profile image! (replace file in
/content/assets/profile.png
) - Favicon image! (replace file in
/content/assets/felog.png
) - Header gradient! ($theme-gradient
/styles/variables.scss
) - Utterances repository! (replace repository address in
/gatsby-meta-config.js
)โ ๏ธ Please check, this guide(https://utteranc.es/)
LICENSE
Org project by @Jbeeโ