Sha256: 5efa838c178ee46277de34160b43537a8c5850ec39b74d6425b665638811cbc4

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

{% if paginator %}
    {% assign posts = paginator.posts %}
{% else %}
    {% assign posts = site.posts %}
{% endif %}

{% for post in posts %}
    <div class="card my-2 mx-3">
        <div class="card-body p-5">
            <h3 class="card-title text-center">{{ post.title }}</h3>

            <p class="card-text text-center">
                {% if post.description %}
                    {{ post.description }}
                {% else %}
                    {{ post.content | strip_html | truncatewords: 50 }}
                {% endif %}
            </p>

            <p class="card-text text-center read-more">
                <a href="{{ post.url | relative_url }}">
                    Read more <i class="fa fa-xs fa-hover fa-chevron-right" aria-hidden="true"></i>
                </a>
            </p>
        </div>
    </div>
{% endfor %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-cadre-0.1.20 _includes/post-cards.html
jekyll-theme-cadre-0.1.19 _includes/post-cards.html