github
html
new repository 命名为 lichen0921.github.ionode
以 http://lichen0921.github.io 能够访问这个代码仓库.git
新建一个 CNAME 文件,内容为github
www.launchercher.com
环境须要 Git 和 Node.jsnpm
npm install -g hexo
NPM全称是Node Package Manager,是NodeJs的包管理器浏览器
mkdir launchercher cd launchercher hexo init
hexo generate hexo server
或者简称bash
hexo g hexo s
用浏览器打开http://localhost:4000 预览博客hexo
修改_config.ymlide
deploy: type: github repository: https://github.com/lichen0921/lichen0921.github.io.git
发布post
hexo deploy
简称
hexo d
npm install hexo-renderer-ejs --save npm install hexo-renderer-stylus --save npm install hexo-renderer-marked --save
git clone https://github.com/A-limon/pacman.git themes/pacman
而后将_config.yml中的theme修改成:pacman
同时修改E:\launchercher\hexo\node_modules\hexo-renderer-stylus\index.js
stylus ... .set('compress', true)
若是发现没效果,能够
rm -rf public hexo clean rm -rf .deploy hexo g hexo s hexo d
bash $ hexo new "My New Post"
More info: Writing
bash $ hexo server
More info: Server
bash $ hexo generate
More info: Generating
bash $ hexo deploy
More info: Deployment
记录类型 主机记录 记录值 A @ 103.245.222.133 CNAME www lichen0921.github.io