zl程序教程

您现在的位置是:首页 >  工具

当前栏目

Hexo+GithubPage搭建Fan主题的博客(4)将本地Hexo项目部署到Github上

GitHub博客项目部署 搭建 本地 主题 Hexo
2023-09-14 09:12:52 时间

更多信息请关注 个人网站

将本地hexo项目部署到github上

(1)打开项目根目录下的_config.yml文件,配置deploy的相关信息,git地址为github创建好的仓库地址

deploy:
  type: git
  repo: git@github.com:redrose2100/blog_demo.git
  branch: master

位置即文件如下:
在这里插入图片描述

(2)安装插件 hexo-deployer-git

npm install hexo-deployer-git --save

如:

D:\src\blog_demo>

D:\src\blog_demo>npm install hexo-deployer-git --save

added 1 package, and audited 336 packages in 3s

20 packages are looking for funding
  run `npm fund` for details

8 vulnerabilities (1 low, 1 moderate, 1 high, 5 critical)

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

D:\src\blog_demo>

(3)部署到github上

hexo g -d

(4)在浏览器打开 https://redrose2100.github.io/blog_demo/
如下,github上的博客已经OK了
在这里插入图片描述

github基础----配置公钥

github实战----github时不时打不开的完美解决办法

Hexo+GithubPage搭建Fan主题的博客(1)基础准备及Github仓库配置

Hexo+GithubPage搭建Fan主题的博客(2)本地初始化Hexo博客项目

Hexo+GithubPage搭建Fan主题的博客(3)更换Hexo博客主题

Hexo+GithubPage搭建Fan主题的博客(4)将本地Hexo项目部署到Github上

Hexo+GithubPage搭建Fan主题的博客(5)编写发表博客

Hexo+GithubPage搭建Fan主题的博客(6)设置博客分类、标签和关于页面

Hexo+GithubPage搭建Fan主题的博客(7)配置自定义域名

Hexo+GithubPage搭建Fan主题的博客(8)在另一台电脑编写发表博客

Hexo+GithubPage搭建Fan主题的博客(9)不用图床为博客配置本地插入图片

Hexo+GithubPage搭建Fan主题的博客(10)配置评论系统

Hexo+GithubPage搭建Fan主题的博客(11)为Hexo博客的valine评论系统配置邮件通知

Hexo+GithubPage搭建Fan主题的博客(12)为博客配置SEO搜索优化