Hexo "tranquilpeak"로 Theme 연결

1
2
3
4
5
OS : "ubuntu 16.04 LTS"
편집기 : "Visual Studio Code"
hexo 문서 url : https://hexo.io/ko/docs//themes.html

Git page에 Hexo 연동 후에 Theme 연동

Theme Install연동

1. Theme Clone

https://hexo.io/themes 에는 이쁘고 괜찮은 Theme들이 많습니다. 그 중에 하나를 선택해서 clone 하면 됩니다.

1
2
3
4
5
6
7
8
# 원하는 테마를 clone
$ cd <path-to-hexo-folder>/themes
$ git clone https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak.git cccc
$ cd tranquilpeak
$ npm install -g bower grunt-cli
$ npm install
$ bower install
$ grunt build

2. hexo Config파일을 수정해서 설치된 Theme 연결

blog/_config.yml($(path-to-hexo-folder)/_config.yml)을 편집기로 연 후에 #Extensions으로 이동 후 아래와 같이 자신의 Theme 이름으로 편집을 해줘야 연결이 됩니다.

1
2
3
4
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: tranquilpeak

3. Server에 수정된 파일 반영

1
$ hexo clean && hexo deploy --generate

변경 된 테마

hexo_tranquilpeak_theme

Contents licensed under Creative Commons by-nc-sa 4.0.