我使用Jekyll构建了我的网站,在本地运行时其功能良好。但是,当我将我的网站部署到github pages时,博客文章不再显示。
我咨询了一个之前的问题:Jekyll post not generated,但它没有解决我的问题。
当我在本地执行bundle exec jekyll serve
时,会获得以下消息:
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
AutoPages: Disabled/Not configured in site.config.
Pagination: Complete, processed 1 pagination page(s)
done in 6.303 seconds.
这表明一切正常工作。问题出在哪里?
Gemfile
中的group :jekyll_plugins
中添加gem "github-pages"
吗? - AlexFreikfor post in paginator.posts
替换为for post in site.posts
(并在我的GitHub repo-clone中测试了你的网站)时,这篇文章已经出现在GitHub页面上了。 - AlexFreik