开始

安装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