安装gitbash

安装hexo

使用npm全局安装hexo-cli :

1
npm install -g hexo-cli

在gitbash中验证是否成功:

1
hexo -v
image-20220316225709308

创建一个博客目录文件夹:这里新建文件夹maupassant-hexo,初始化一个hexo博客

1
hexo init
image-20220316230136708

下载主题源码

github仓库地址:https://github.com/tufu9441/maupassant-hexo/tree/master

1
git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
image-20220316230811408

安装渲染器

1
2
npm install hexo-renderer-pug --save
npm install hexo-renderer-sass --save