npm install hexo-theme-meizi``bash`
npm install hexo-cli -g`$3
bash`
hexo init blog
cd blog
npm install
hexo server --debug
bash
cd theme
git clone https://github.com/imochen/hexo-theme-meizi.git
mv hexo-theme-meizi meizi
`$3
在根目录找到
_config.yml,将theme改为meizi`javascript
theme: meizi
`$3
`bash
hexo new page about
`
打开新创建的about/index.md
修改其内容为
`md
title: "关于我"
layout: "about"
---
`
`bash
hexo new page archive
`
打开新创建的archive/index.md
修改其内容为,里面无需再追加任何内容
`md
title: "归档"
layout: "all-archives"
---
`
`bash
hexo new page tags
`
打开新创建的tags/index.md
修改其内容为,里面无需再追加任何内容
`md
title: "标签"
layout: "tags"
---
`$3
重新启动Hexo
`bash
hexo server --debug
`二次开发
$3
进入主题目录,安装依赖
`bash
npm install
`安装完成后启动gulp任务即可
`bash
gulp watch
``