# 全局安装hexo
npm install hexo-cli -g
# hexo初始化
hexo init hexo-webstack-navication
cd hexo-webstack-navication
hexo server
# 创建文章
hexo new hexo
本主题根据 webstack 进行小幅度的修改,请看源码
克隆主题并把主题文件放入到themes
下,并把目录文件修改为butterfly
原皮预览:http://webstack.cc/cn/index.html
# 安装hexo
hexo init hexo-webstack-navication
npm install hexo-theme-webstack -S
修改配置文件:主配置文件_config.yml
theme: webstack
如果不想配置请克隆我的修改过后的主题文件,并换成个人基本信息和网络地址
# 克隆我的地址
git clone git@github.com:sundayskys/hexo-webstack-navigation.git
# 安装
npm install
# 启动
hexo server
导航浏览:http://nav88.cc
将项目上传到到master分支上,gh-pages 为部署网页
git add *
git commit -m 'init'
git push origin master
将编译后的代码上传到gh-pages,也就是将要部署的页面
git subtree split --prefix=public -b gh-pages
git push origin gh-pages