Sha256: 799858dec29ddf3ad63af63f0671a2a3f1cd8ae3e87fe32f80dcf91725b64a4e

Contents?: true

Size: 837 Bytes

Versions: 3

Compression:

Stored size: 837 Bytes

Contents

---
layout:   post
---

{% assign collection= site.collections | where: "label", page.collection | first %}
{% assign items = collection.docs | sort: 'order' %}

<div class="row">
  {% for post in items %}
    {% assign loopindex = forloop.index | modulo: 3 %}
    {% if loopindex == 0 %}
      <div class="4u$ 12u$(medium)">
    {% else %}
      <div class="4u 12u$(medium)">
    {% endif %}
      <a href="{{ post.url | relative_url }}">
        <div class="box">
          <h3>{{ post.title }}</h2>
          {% if post.date %}<p>{{ post.date | date_to_string }}</p>{% endif %}
          {% if post.image %}<span class="image fit"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
          <p>{{ post.excerpt | strip_html | truncatewords: 15 }}</p>
        </div>
      </a>
    </div>
  {% endfor %}
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fortyone-jekyll-theme-1.2.3 _layouts/allposts.html
fortyone-jekyll-theme-1.2.2 _layouts/allposts.html
fortyone-jekyll-theme-1.2.1 _layouts/allposts.html