部署博客问题

# 部署博客问题

# 问题1:标题标题重合问题

解决方案:在index.style中添加如下代码

// 隐藏每篇文章的标题、作者、时间
.page .page-title {
  display: none;
}
1
2
3
4

# 问题2:头部favicon的标题使用title,无法配置生效

解决方案:在对应路由页面的md文件中,定义YAML的title

---
title: 部署博客问题
lang: en-US
---
1
2
3
4

# 问题3:Github Actions自动同步时,部署报错,没有密钥访问权限

Image text

解决思路:

  • 在 gitee 上配置公钥,然后本地留私钥,才能提交给 gitee 上
  • github actions 的操作其实是把 github 的服务器当做我们的本地
  • github 和 gitee 上都是放公钥
  • 要实现 github 同步 gitee,需要把你的本地的私钥存放到 github 上的 secrets 上,模拟本地推代码到 gitee

解决方案: 这里的dst_key和dst_token都是同步到目标Gitee账号的私钥和公钥,不是Github账号的私钥

# 问题4:sh部署持续集成报错,unable to access 'https://github.com/crithes/gaojieDoc.git/': LibreSSL SSL_c

解决:

// 取消全局代理
git config --global --unset http.proxy 
git config --global --unset https.proxy

//关闭ssl
git config --global http.sslVerify false
git config --global https.sslVerify false

1
2
3
4
5
6
7
8