2

Alright, I'm dealing with a really odd problem.

I've built a Jekyll-based site with several test posts. Locally, it compiles perfectly. Now I've begun testing it on Heroku (its eventual home). I'm using a custom buildpack to build the site once it is pushed to Heroku so I don't have to commit compiled content into my repo.

The Jekyll site is building without error, and yet, the results are bizarre. My index page is built to list all of my posts in site.posts:

{% for post in site.posts %}
  <li>
    <a href="{{ post.url }}">{{ post.title }}</a>
  </li>
{% endfor %}

It starts with the test post I've made, and then lists 28 other "posts" that I've never created. They look to me like internal Jekyll functions somehow getting caught up in the compiler. Here are some of their names:

  • Md Extension
  • Text Extension
  • Timezone Override
  • Time Override
  • Override Data
  • Date Override
  • Foo --- Bar
  • No Yaml
  • ...

These "posts" are only showing up when compiling on Heroku.

Does anybody have any idea what is going on here?

4

1 回答 1

5

我遇到了同样的问题,然后我发现 heroku 在 / 处运行,并且 gem 安装在 /vendor 中。一旦 Jekyll 运行,它会扫描目录中的所有文件和文件夹以构建 _site。

编辑你的 _config.yml 并告诉 Jekyll 排除“供应商”。我也将我的配置为排除“Procfile”、“unicorn.rb”和“config.ru”。

于 2012-09-05T01:16:53.507 回答