前面我写了一篇《利用Github pages建站-超简单小白专属?》
随着hexo版本的升级,我在这篇博文里对内容进行更新
用户名+github.io
的repositorynpm install hexo-cli -g #安装
hexo init blog #初始化项目
cd blog
npm install #安装依赖
hexo server #本地查看效果,访问地址为http://localhost:4000
freemind
主题git clone https://github.com/wzpan/hexo-theme-freemind.git themes/freemind
npm install hexo-tag-bootstrap --save
添加blog目录下添加的source
目录下分别添加categories
,tags
,about
,并分别新建index.html
内容分别如下:
title: Categories
layout: categories
---
title: Tags
layout: tags
---
title: About
layout: page
---
Something about me. ;-)
在blog\themes\freemind
目录下有个_config.yml
请按照需要修改
blog
根目录下也有个_config.yml
,按照自己需求修改theme: freemind
npm install hexo-deployer-git --save
_config.yml
deploy:
type: git
repository: https://github.com/wiselyman/wiselyman.github.io.git
branch: master
hexo clean
hexo generate
hexo deploy #输入帐号密码
? | ? |
?
效果:
?
?
原文:http://wiselyman.iteye.com/blog/2217295