2017-06-25 3 views
0

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?

+0

Code scheint in Ordnung zu sein, irgendwelche Fehler mit nach dem Zugriff auf die Seite mit 'Bündel exec jekyll s --trace'? – marcanuy

+0

@marcanuy Nein, absolut nichts –

Antwort

0

Ein Update auf jekyll 3.5 funktionierte.

+0

Ich hatte das gleiche Problem. Ich habe mir gedacht, dass das Einstellen eines zukünftigen Datums verhindert, dass es gepostet wird – carlmyerflor

Verwandte Themen