hexo+github搭建个人博客
时间: 2023-12-13 16:33:03 浏览: 420
以下是使用Hexo和GitHub Pages搭建个人博客的步骤:
1.安装Node.js和Git
2.安装Hexo
```shell
npm install -g hexo-cli
```
3.初始化Hexo
shell
hexo init blog
cd blog
npm install
```
4.配置Hexo
打开根目录下的_config.yml文件,修改以下内容:
```yaml
deploy:
type: git
repo: <your-github-username>.github.io
branch: master
```
5.安装部署插件
```shell
npm install hexo-deployer-git --save
```
6.创建GitHub仓库
在GitHub上创建一个名为<your-github-username>.github.io的仓库。
7.部署博客
```shell
hexo clean
hexo g
hexo d
```
现在你的个人博客已经部署到GitHub Pages上了。
--相关问题--:
阅读全文
相关推荐














