Sha256: 2d3d0f86b9741b6f81f819ecf505427676bdb8e309586f78a063e0d18508b0e7

Contents?: true

Size: 822 Bytes

Versions: 3

Compression:

Stored size: 822 Bytes

Contents

---
layout:   post
---

{{ content }}

{% 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 | absolute_url }}">
        <div class="box">
          <h3>{{ post.title }}</h2>
          {% if post.image %}
            <span class="image fit">
              <img src="{{ post.image | absolute_url }}" 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/collection.html
fortyone-jekyll-theme-1.2.2 _layouts/collection.html
fortyone-jekyll-theme-1.2.1 _layouts/collection.html