1) install && posting
$ hexo install -g hexo-cli # ์ค์น
$ hexo version # version check
$ hexo init [reponame] # ํฌ์คํธ ๊ด๋ฆฌ repo ์์ฑ
$ hexo new post "[title]"
$ vi [title]
# ์์ฑ๋ md file์ ์์ ํ์ฌ ํฌ์คํ
์์ฑ
# --- ๋ก ๊ตฌ๋ถ๋ 3์ค์ ํํ๋ ๊ฐ๊ธ์ ๊ฑด๋๋ฆฌ์ง ๋ง ๊ฒ.
# ๋ด์ฉ๋ง ๋ณ๊ฒฝ
$ hexo clean && hexo generate // ๋ณ๊ฒฝ์ฌํญ ์์ ๋๋ง๋ค ์ฃผ๊ธฐ์ ์ผ๋ก ์์ฑ
$ hexo server // server open (localhost:4000)
2) themes
# theme ์ค์น
https://theme-next.js.org/docs/
# ์ํ๋ theme ์ ํํด์ url clone
$ git clone https://github.com/next-theme/hexo-theme-next themes/next
$ vi _config.yml
# theme next ์ค์
$ hexo clean && hexo generate
$ hexo server
๐โโ๏ธ ์น ์๋ก๊ณ ์นจ
ctrl
+ shift
+ r
3) custom
# custom
$ cd themes/next
$ cp _config.yml ../../_config.next.yml
$ cd ../../
$ ls
$ vi _config.next.yml
# ์ํ๋ ์ค์ ํ๊ธฐ
4) deploy
# github repo
# [name].github.io ๋ผ๋ ์ด๋ฆ์ repo ์์ฑ
# deploy
$ npm install hexo-deployer-git --save # ์ค์น
$ vi _config.yml
# ํ๋จ๋ถ๋ถ ์ถ๊ฐ(๋ด git url ์ถ๊ฐ)
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repo: https://github.com/ktmihs/ktmihs.github.io.git
branch: main