Causation

Due to I change my Linux distrobution from archlinux to ubuntu,
so I need to make an migration for hexo blog

Migration

Copy the blog’s source file, config files

1
2
$ cp ~/blog/source ~/blog-backup
$ cp ~/blog/_config.* ~/blog-backup

Create a new blog directory

1
$ mkdir blog

Setup hexo

1
2
3
4
5
6
7
8
9
10
11
$ cd blog

# install hexo-cli
$ npm install -g hexo-cli

#check installation
# hexo -v

# init hexo
$ hexo init
$ npm install

Setup butterfly

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# install theme
$ npm install hexo-theme-butterfly

# clone theme to the blog/theme
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly

# install plugins
npm install hexo-renderer-pug hexo-renderer-stylus --save

# math formula
$ npm uninstall hexo-renderer-marked --save
$ npm install hexo-renderer-kramed --save

$ npm install hexo-renderer-pug hexo-renderer-stylus --save

# wordcount
$ npm install hexo-wordcount --save

# github deploy plugin
$ npm install hexo-deployer-git --save

Check

1
2
$ hexo g
$ hexo s

Reference

butterfly-theme-document