如何使用Hexo搭建属于自己的博客

Hexo安装步骤

Hexo官网

环境准备

Nodejs
Git

安装Hexo

npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

Next主题

安装Next

cd your-hexo-site
git clone https://github.com/iissnan/hexo-theme-next themes/next

启用主题
打开“_config.yml”文件,找到 theme 字段,并将其值更改为 next。

theme: next

设置搜索功能

1. 在hexo的根目录下执行命令:

npm install hexo-generator-searchdb --save

猜你喜欢

转载自blog.csdn.net/ftm_csdn/article/details/104445496