Ruby Can';我不能让我的基于宝石的主题工作。主题可以';找不到布局

Ruby Can';我不能让我的基于宝石的主题工作。主题可以';找不到布局,ruby,rubygems,jekyll,gitlab,gitlab-ci,Ruby,Rubygems,Jekyll,Gitlab,Gitlab Ci,我试着在谷歌上搜索解决方案,并按照各种指示创建我自己的基于宝石的主题,但它仍然不适合我。在它们成为基于宝石的主题之前,我已经创建了一堆Jekyll主题,并且没有任何问题 现在,当我尝试运行该主题时,会出现一系列错误,如: Build Warning: Layout 'post' requested in _posts/2016-8-20-etiam.md does not exist. Build Warning: Layout 'post' requested in _posts/2016

我试着在谷歌上搜索解决方案,并按照各种指示创建我自己的基于宝石的主题,但它仍然不适合我。在它们成为基于宝石的主题之前,我已经创建了一堆Jekyll主题,并且没有任何问题

现在,当我尝试运行该主题时,会出现一系列错误,如:

 Build Warning: Layout 'post' requested in _posts/2016-8-20-etiam.md does not exist.
 Build Warning: Layout 'post' requested in _posts/2016-8-21-consequat.md does not exist.
 Build Warning: Layout 'post' requested in _posts/2016-8-22-ipsum.md does not exist.
 Build Warning: Layout 'post' requested in _posts/2016-8-23-magna.md does not exist.
 Build Warning: Layout 'post' requested in _posts/2016-8-24-tempus.md does not exist.
 Build Warning: Layout 'post' requested in _posts/2016-8-25-aliquam.md does not exist.
 Build Warning: Layout 'home' requested in index.md does not exist.
我是ruby gems的新手,所以我认为我在创建宝石时做错了什么。我还使用默认的MinimaGem主题测试了我的GitLab Pages站点,当我切换到该主题或最小错误(也基于gem)时,它就可以工作了。但是,当我尝试添加我自己的主题(theme)时,这些错误会显示在构建上,构建成功,我的站点的代码输出就是index.md。
或其他文件中没有任何内容

有人能告诉我我做错了什么吗


谢谢

当我忘记指定在我的
\u config.yml
中使用的gem主题时,我遇到了相同的错误

例如,要使用主题
jekyll自定义主题
,您需要在文件中添加
主题
属性:

... # your _config.yml configurations

theme: jekyll-custom-theme # Specify the gem theme
确保在
Gemfile
中包含主题的gem和当前版本,如:

源代码“https://rubygems.org"
gem'jekyll自定义主题',“~>0.0.1”

能否共享您的
.gitlab ci.yml
文件?如果是开源的,则返回repo。
post
布局是由
\u posts/
中的文件请求的,您需要一个位于
\u layouts/post.html
的文件。
主页的布局也是如此。如果你没有看到我最后的评论,我删除了我的答案以避免混淆,因为这个问题似乎与我最初的想法不同。对不起,伙计,祝你好运!