$ sudo npm install hexo-cli -g
$ hexo -v
hexo-cli: 0.1.9
os: Darwin 14.3.0 darwin x64
http_parser: 2.3
node: 0.12.7
v8: 3.28.71.19
uv: 1.6.1
zlib: 1.2.8
modules: 14
openssl: 1.0.1p
$ hexo init yt8yt.github.io
INFO  Copying data to ~/source/yt8yt.github.io
INFO  You are almost done! Don't forget to run 'npm install' before you start blogging with Hexo!
$ cd yt8yt.github.io
$ npm install
$ hexo server
INFO  Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
https://hexo.io/docs/configuration.html
$ vi _config.yml
~~~~~~~~~~~~~~~~~~ _config.yml ~~~~~~~~~~~~~~~~~~
# Site
title: yt8yt's note
subtitle:
description: yt8yt's personal blog
author: yt8yt
language:
timezone: Japan
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yt8yt.github.io/
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
https://github.com/hexojs/hexo-deployer-git
$ npm install hexo-deployer-git --save
$ vi _config.yml
~~~~~~~~~~~~~~~~~~ _config.yml ~~~~~~~~~~~~~~~~~~
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
  type: git
  repo: [email protected]:yt8yt/yt8yt.github.io.git
  branch: master
"watch" command can monitor your files.
https://hexo.io/docs/generating.html
$ hexo generate --watch
$ hexo new first-post
INFO  Created: ~/***/yt8yt.github.io/source/_posts/first-post.md
Hexo's Helper
https://hexo.io/docs/helpers.html
I use Atom with "shift + control + m" :-)
https://atom.io/
It's not necessary to deploy.
https://hexo.io/docs/deployment.html
$ hexo deploy
Awesome, thanks for sharing. (y)