type
status
date
slug
summary
tags
category
icon
password
1. 安装Node.js、git
2. 本地git连接github账号
3. 安装并创建Hexo博客
创建一个blog文件夹用来存放整个项目的文件
右键选择Git Bash Here
notion image
安装cnpm
4. cnpm长时间未响应的解决方法:(正常则跳过)
1. 先卸载cnpm
2. 注册模块镜像
3. node-gyp 编译依赖的 node 源码镜像
4. 清空缓存
5. 安装cnpm
安装hexo
hexo初始化
notion image
初始化完成后会生成的文件(其实就是从github仓库clone项目)
notion image
5. 本地运行博客服务器
输入以下命令后博客默认在本地4000端口运行
notion image
6. 创建github仓库
创建一个仓库名为 {你的github用户名}.github.io 的仓库
notion image
复制仓库地址
notion image
7. 修改站点配置
找到blog目录下的 _config.yml 文件,拉到最下面修改并保存,repo里填复制过来的仓库地址
notion image
notion image
8. 安装git插件并部署博客
安装hexo-deployer-git
notion image
部署博客到github
跳出登录提示则登录github账号
notion image
刷新仓库发现网页已经部署成功
notion image
博客已可以访问
notion image
Vim方向键BUG的解决方法Git、Github相关
Loading...
Kougami
Kougami
Life Will Change
统计
文章数:
18
公告
てへぺりんこ