set up blog with Hexo

Hexo is a fast,simple and powerful blog framework

Dependencies

  • git
  • the latest version of node.js

Install

npm install hexo-cli -g
hexo init blog
cd blog
npm install
npm install hexo-deployer-git --save
hexo server

visit localhost:4000 to see your hexo blog

if you are the first time to use gitub, you sholud get a account, and

git config --global user.name "username"
git config --global user.email "email"
ssh-keygen
cat ~/.ssh/id_rsa.pub

copy the content to github -> setting -> SSH and GPG keys -> new SSH key

create a new repository named yourusername.github.io

Config

edit _config.yml

deploy:
    type: git
    repo: https://github.com/username/username.github.io.git
    branch: master

Deploy

hexo clean
hexo d -g

Other

remove blog footer by editing themes/landscape/layout/_partials/footer.swig