jekyll页面不更新

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

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

阅读 7.5k
1 个回答

谢邀!

  • 关于本地调试正常,远程访问看不到,一般原因是解析错误,所以无法发布。如果你验证邮箱,有问题,应该会收到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更新看看有没有计数。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进