Plötzlich, arbeiten mit jekyll 3.4.3 für eine Weile jetzt, diese Schleife für das Rendering Kollektionsteile hat sich für mich nicht mehr funktioniert ...Jekyll Sammlung für Schleife gestoppt
{% 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 %}
Das ist mein _config.yaml ist
collections:
work:
output: true
permalink: /work/:path/
Und dies ist ein Beispiel für eines der Elemente
---
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 .....
Nichts auf die Seite gestellt wird, nicht er Ror sind gegeben .. bei der Ausgabe von site.collections.work allein, alle Inhalte sind da .... Was ist los?
Code scheint in Ordnung zu sein, irgendwelche Fehler mit nach dem Zugriff auf die Seite mit 'Bündel exec jekyll s --trace'? – marcanuy
@marcanuy Nein, absolut nichts –