Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Latest commit

 

History

History
218 lines (160 loc) · 8.09 KB

README.ko.md

File metadata and controls

218 lines (160 loc) · 8.09 KB

Build Status Greenkeeper badge Total alerts Lighthouse score: 100/100 contributions welcome Netlify Status

Twitter: JbeeLjyhanll

screenshot

In this template...

  • 💄 Fira Code 폰트로 코드 하이라이팅 기능
  • 😄 Emoji 지원
  • 🗣 Twitter, Facebook 등 SNS 공유 지원
  • 💬 Disqus, utterances 댓글 기능 지원
  • ☕ 'Buy me a coffee' 라는 후원 기능
  • 🧙 포스트 작성을 위한 CLI 도구 지원
  • 🤖 GA 지원
  • ⭐ 여러 UX요소 추가
  • ⚙ 별도 설정 파일을 통한 블로그 세부 사항 설정 지원

이 블로그 템플릿에 대한 정보

Demo

Use case

demo-image

이 템플릿을 사용하여 블로그를 만들었다면 위 '사용한 블로그' 리스트에 추가해주세요! PR을 통해 등록해주시면 됩니다!

😎 Quick Start

1. Gatsby 프로젝트를 시작

# 이 블로그 스타터를 사용하여 gatsby 프로젝트를 시작할 수 있습니다.
npx gatsby new my-blog-starter https://github.com/JaeYeopHan/gatsby-starter-bee

만약 npx를 사용하고 있지 않는다면, Gatsby Getting Started 글을 참고하거나 아래 커맨드를 실행해주세요.

npm install -g gatsby-cli
gatsby new my-blog-starter https://github.com/JaeYeopHan/gatsby-starter-bee

2. 이제 로컬에서 확인하실 수 있습니다

cd my-blog-starter/
npm start
# 브라우저에서 localhost:8000로 접근합니다.

3. 포스팅을 추가하세요

다음 두 곳에서 포스팅을 추가할 수 있습니다.

  • 블로그 포스팅은 content/blog 디렉토리에 추가해주세요.
  • 웹에 올려둘 이력서는 content/__about 디렉토리에 추가해주세요.

몇 가지의 메타데이터와 마크다운 문법으로 포스팅을 작성할 수 있습니다.

새로운 포스트를 작성할 때 커맨드라인을 통해 할 수 있습니다

cli-tool-example

npm run post

위 커맨드를 입력하면 새로운 포스트가 생성됩니다.

👉 gatsby-post-gen CLI 도구를 사용합니다. (https://github.com/JaeYeopHan/gatsby-post-gen)

4. 메타데이터 수정

/gatsby-meta-config.js 파일에서 블로그를 설정하는 여러 요소를 수정할 수 있습니다.

5. Netlify로 배포

Deploy to Netlify

💡 github pages를 통해 배포하고 싶다면 아래 npm script를 package.json에 추가해주세요.

"scripts": {
    "deploy": "gatsby build && gh-pages -d public -b master -r 'git@github.com:${your github id}/${github page name}.github.io.git'"
}

gh-pages 모듈이 필요할 경우 설치가 필요합니다.

🧐 입맛에 맞게 바꾸기

⚙ 설정

/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

⛑ 구조

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

🎨 스타일

src/styles 디렉토리에서 CSS 속성들을 수정할 수 있습니다.

src/styles
├── code.scss
├── dark-theme.scss
├── light-theme.scss
└── variables.scss

🍭 꿀팁

  • 프로필 사진! (replace file in /content/assets/profile.png)
  • 파비콘 이미지! (replace file in /content/assets/felog.png)
  • 헤더의 그라데이션! ($theme-gradient /styles/variables.scss)
  • robots.txt 에 배포되는 도메인으로 업데이트를 위한 설정을 해주세요! (replace file in gatsby-config.jshttps://your-blog.netlify.app 부분)
  • Utterances를 위한 repository를 설정을 해주세요! (/gatsby-meta-config.js의 repository 주소를 교체해주세요.)

☕ 마음에 드셨나요?

Buy Me A Coffee

🤔 만약에...

만약 현재 미디엄에서 블로그를 운영중이시라면 마이그레이션을 고려해보세요! medium-to-own-blog!

🐛 버그제보

Issue

🎁 기여하기

Contributing guide

LICENSE

MIT

Project by @Jbee