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