Hexo + Icarus 테마 적용해서 배포하기

1. Hexo install

1
2
3
4
5
# 이런거 설치 해서 npm 설치되어 있단 가정 하고
brew install nodejs

# hexo cli 설치하기
npm install -g hexo-cli

2. 블로그 디렉터리 생성

1
2
3
hexo init blog
cd blog
hexo s

3. blog/_config.yml 수정

1
2
3
4
deploy: 
type: git
repo: https://github.com/garden715/garden715.github.io.git
branch: master

4. Icarus 테마 적용

1
2
3
4
5
6
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
vim blog/_config.yml
# theme: icarus
hexo s
# 서버 시작하면 blog/themes/icarus/_config.yml 파일이 생성됨
# 이 파일에서 테마 설정 변경

4. 포스트 쓰기

1
hexo new post '포스트명'

5. 배포

1
2
hexo clean
hexo deploy