循环的Jekyll集合已停止工作

循环的Jekyll集合已停止工作,jekyll,Jekyll,突然,使用Jekyll3.4.3一段时间后,这个呈现集合项的循环对我来说已经停止工作了 {% for work in site.work %} {% if work.featured %} {% assign mod = forloop.index | modulo:2 %} {% if mod == 0 %}

突然,使用Jekyll3.4.3一段时间后,这个呈现集合项的循环对我来说已经停止工作了

{% for work in site.work %}
                    {% if work.featured %}
                        {% assign mod = forloop.index | modulo:2 %}
                        {% if mod == 0 %}
                            <a href="{{work.url}}"><div class="col-xs-12 col-md-6 col-md-offset-5 featured-work">
                                <div class="featured-work-title">{{work.title|replace: " ","</br>"}}</div>
                                <div class="featured-work-image" style="background-image: url(/images/{{work.image}});"></div>
                            </div></a>
                        {% else %}
                            <a href="{{work.url}}"><div class="col-xs-12 col-md-6 featured-work">
                                <div class="featured-work-title">{{work.title|replace: " ","</br>"}}</div>
                                <div class="featured-work-image" style="background-image: url(/images/{{work.image}});"></div>
                            </div></a>
                        {% endif %}
                    {% endif %}
{% endfor %}
这是其中一个项目的样本

---
layout: work
featured: true
title: Eluu.ee
link: http://eluu.ee
punchline: What does it take to sell a toy.
image: eluu.jpg
disciplines:
    - Website
    - Ecommerce
    - Voog
year: Ongoing
---

In late 2016, I .....

没有任何内容被放入页面,没有给出错误。。单独输出site.collections.work时,所有内容都在那里。。。。出什么问题了?

对jekyll 3.5的更新成功了。

代码似乎很好,在使用bundle exec jekyll s--trace访问页面后,出现了任何错误?@marcanuy没有,绝对没有,我遇到了相同的问题。我想设置一个未来的日期会阻止它被发布
---
layout: work
featured: true
title: Eluu.ee
link: http://eluu.ee
punchline: What does it take to sell a toy.
image: eluu.jpg
disciplines:
    - Website
    - Ecommerce
    - Voog
year: Ongoing
---

In late 2016, I .....