【问题标题】:GitHub Pages not updating postGitHub Pages 没有更新帖子
【发布时间】:2016-06-23 05:44:45
【问题描述】:

我目前是 Jekyll(以及 Ruby)的初学者,我正在 GitHub 上尝试 GitHub Pages 博客。这是页面:http://nobodykid.github.io/ 和 repo https://github.com/nobodykid/nobodykid.github.io

我已经成功安装了 Ruby 和 Jekyll。我还按照https://help.github.com/articles/setting-up-your-pages-site-locally-with-jekyll 中的说明安装了GitHub-pages Gem

当我第一次尝试Jekyll serve 在本地查看时。我收到了这个错误

cannot load such file -- kramdown

当我尝试bundle exec Jekyll serve 时,网站生成成功。但有了这条消息:

Please add the following to your Gemfile to avoid polling for changes
gem 'wdm', '>=0.1.0 if Gem.win_platform?

当我尝试发布新帖子并将所有内容发布到我的存储库中时,只有 Jekyll 的第一个示例帖子显示。我创建的帖子没有显示,即使我可以看到它在本地使用bundle exec Jekyll serve 生成。

我是不是在某个地方做错了什么?感谢您的任何帮助

【问题讨论】:

    标签: github jekyll github-pages


    【解决方案1】:

    可能是时间问题 - 您的发布日期是 3-9 点,但您昨天是 3-8 点发布的(至少我现在在哪里!)。

    尝试提交(任何内容)并查看它现在是否显示。请记住,该站点仅在您提交时才构建 - 所以即使问题是日期,今天是 3-9 的事实并不意味着帖子会神奇地出现 - 除非它重新生成。

    【讨论】:

    • 我认为date 变量只是为了在帖子上显示日期,但也会影响帖子的显示时间。谢谢
    猜你喜欢
    • 2019-04-01
    • 1970-01-01
    • 2015-11-29
    • 1970-01-01
    • 2015-10-23
    • 1970-01-01
    • 2019-09-30
    • 1970-01-01
    • 2021-07-27
    相关资源
    最近更新 更多