由于 archlinux 上出现了一些 bug,而且因为跑 SLAM,安装包占去了过多存储空间,临时决定将 blog 移植到 Windows 上来方便经常更新。
install necessary modules
- download nodejs and install
- download git and install
- Win+R open cmd to the right direction
$ mkdir blog $ npm install hexo -g $ hexo -v //check info $ npm install //install necessary components $ hexo init //initialize folder $ hexo g //Start processing
|
$ npm install //install necessary components $ npm install hexo-deployer-git --save // deploy to git $ npm install hexo-generator-feed --save // build RSS $ npm install hexo-generator-sitemap --save // build sitemap
|
add ssh key
$ ssh-keygen -t rsa -C "your email address" $ cat /home/xxx/.ssh/id_rsa.pub //check your key
|
- load key to Github (default on Github & default you can use Github)
set id & email
$ git config --global user.name "your id" $ git config --global user.email "your email"
|
copy previous files
- copy source files to the new catalog (as follows)
_config.yml package.json node_modules scaffolds source themes
- type
hexo s
to check