jekyll页面不更新

发布于 2022-08-28 12:38:04 字数 192 浏览 12 评论 0

  1. 在_post中添加了新文章,本地调试完全正常
  2. push之后,远程访问无法看到新添加的文章
  3. 在repository里可以看到更新,但在Contribution activity里无法看到更新

google到相关的问题,有提到可能由编码引起,但我先前的10多篇文章都包含大量中文,未引起任何问题

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜无邪 2022-09-04 12:38:04

谢邀!

  • 关于本地调试正常,远程访问看不到,一般原因是解析错误,所以无法发布。如果你验证邮箱,有问题,应该会收到github的报错邮件 。这个也许对你有帮助。

  • 当时我也遇到过你的问题,但是我的问题主要是由于Maruku对代码部分的解析不够好,所以我用precode标签代替反引号,很是麻烦。关于中文编码问题,我的博客也包含大量中文,没遇到过什么问题。

  • 解析出错也可能和Maruku有关,Maruku已经停止更新,jekyll已经打算更换默认md解析器,详情请戳这里

  • 关于Contribution activity看不到更新,一般是由于git邮箱设置和你的github邮箱不一致,可以执行命令如下命令查看git config user.email

  • 如果仍然无法解决,可以给github发邮件,他们回复还是挺及时的。


如果你git配置邮箱是你的github邮箱,看github 网站上的这么一段话话

If your commit isn't showing up, check to make sure these are true:

> The email address you used to commit is associated with your GitHub account
> The commit was made in the past year.
> The repository isn't a fork.

Additionally there are a few ways we determine whether you are associated with a given repository. At least one of these things must be true for us to count a commit contribution:

> You have write access to the repository
> You are a member of the organization that owns the repository
> You have forked the repository
> You've opened an issue or PR on the repository
> You've starred the repository

如果满足以上条件,是会计数的。
我也是个git菜鸟,单纯感觉你更改用户名和仓库地址可能会有影响。你可以删除本地仓库,重新clone,push更新看看有没有计数。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文