Jekyll 自定义主题不适用于 Github 个页面

Jekyll custom theme not working on Github pages

我有一个 jekyll 站点,我想将其部署为 github 页。它独立运行良好,但无法在 github 页内构建,并出现来自 _index.html 的包含错误。我什至没有 _include 目录。我正在使用最小错误主题。我已经精简了我的网站,可以在 https://github.com/laredo/mm-jekyll

找到它。

确切的错误是:index.html 中包含一个文件,它是一个符号链接或不存在于您的 _includes 目录中。

https://github.com/laredo/mm-jekyll/blob/master/index.html

正在寻找成功构建网站的建议

我有一个基于 Jekyll 和 Minimal Mistakes 的博客。它已经托管在 github 页中。我不知道你是如何开始你的项目的,但对我有用的只是克隆 minimal mistakes Github repository 并更改 _config.yml.

在你的_config.yml

  • 删除theme: minimal-mistakes-jekyll
  • 添加remote_theme: mmistakes/minimal-mistakes
  • 在插件配置中启用 jekyll-include-cache

插件配置现在是:

plugins:
  - jekyll-feed
  - jekyll-include-cache