Hexo使用
安装Node.js
- 安装最新版npm
1 | npm install npm@latest -g |
- 安装n
1 | npm install -g n |
- 使用n安装node
1 | n latest |
安装Hexo
1 | cnpm install -g hexo-cli |
使用Hexo建站
在建站博客根目录中(./hexo)中初始化
1 | hexo init hexo |
安装next主题(仓库地址)
1 | git clone https://github.com/theme-next/hexo-theme-next themes/next |
在博客根目录下的_config.yml中配置
1 | theme: next |
安装看板娘
- 安装live2d模块
1 | npm install --save hexo-helper-live2d |
下载模型(仓库地址)
在您博客根目录下创建一个 live2d_models 文件夹,将模型资源文件夹(如:live2d-widget-model-koharu)放入此文件夹中
在博客根目录下的_config.yml文件进行配置
1 | # Live2D |