Skip to content

p5sf/hexo-webstack-navigation

Repository files navigation

安装环境

  • 前端运行需要运行在 node 环境,请先安装Node
  • 由于需要部署到 Github 上,请先安装Git

安装主题

安装 Hexo

官网:https://hexo.io/zh-cn/

 # 全局安装hexo
 npm install hexo-cli -g
 # hexo初始化
 hexo init hexo-webstack-navication
  cd hexo-webstack-navication

启动 Hexo

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

域名解析

About

hexo-webstack程序员导航主题网站

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published