本站搭建过程

本站基于hexo搭建,以下是搭建过程的简单记录

前置软件

node.js

git

安装hexo

控制台输入以下代码安装hexo

1
npm install -g hexo

检查是否安装成功

1
hexo -v

显示hexo-cli版本号,成功安装

建立仓库

在项目文件夹下打开cmd,初始化博客

1
2
hexo init myblog
npm install

github新建仓库,之后在项目文件夹下打开git bash

1
2
3
4
5
git init
git add .
git commit
git remote add origin 仓库地址
git push -u origin main

之后在vercel部署即可

Tips

git使用过程中可能遇到网络问题,添加代理解决

1
2
git config --global http.proxy 127.0.0.1:10808
git config --global https.proxy 127.0.0.1:10808

其他

git还需要深入学习