使用Node.js + Hexo搭建本网站
开始
安装Hexo
自行安装Node.js并配置环境变量 不多做解释
$ npm install hexo-cli -g |
初始化网站
$ npx hexo init 文件名 |
进入网站根目录
$ cd 文件名 |
安装必备的组件
$ npm install |
测试网站
$ npx hexo server |
安装主题
下载主题
$ npm install hexo-theme-butterfly |
安装主题
打开根目录_config.yml配置文件
theme:butterfly |
安装主题依赖
npm install hexo-renderer-pug hexo-renderer-stylus --save |
启动Hexo博客
$ npx hexo server |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LumineSightのBlog!
评论



.jpg)