0
を動作を停止し、しばらくの間、今ジキル3.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 %}
これは私の_config.yaml
ですcollections:
work:
output: true
permalink: /work/:path/
そして、これはページに入れます項目の1
---
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 .....
何も、ないERのサンプルですrorsが与えられます.. site.collections.workだけを出力すると、すべてのコンテンツがそこにあります....何が間違っていますか?
コードは、 'bundle exec jekyll s --trace'でページにアクセスした後にエラーがあるようです。 – marcanuy
@marcanuyいいえ、絶対に何も –