Sha256: f1f9a605c8bab9bbd6aea7a9b2e1d7459dad12d83ec5cb4f812b1ef8e660e035

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

<!--
    This include will display recent posts of a specified category & number..

    Parameters:
    - category: The category of the posts to display.
    - post_display_limit: The maximum number of posts to display.
    - post_collection_title: The title to display above the list of posts.

    Example Usage:
    {% raw %}
    {% include posts.html category="blog" post_display_limit=5 post_collection_title="Recent Blog Posts" %}
    {% endraw %}

    The above example would display the 5 most recent posts from the 'blog' category, with the title 'Recent Blog Posts'
    above the list.

-->

<div class="posts-wrapper">
    {%- for post in site.categories[include.category] limit: include.post_display_limit -%}
    <article class="post-item row">
        <div class="col-md-2">
            <span class="post-item-date">{{ post.date | date: "%b %d, %Y" }}</span>
        </div>
        <div class="col-md-10">
            <span class="post-item-title">
                <a href="{{ post.url }}">{{ post.title | escape }}</a>
            </span>
        </div>
    </article>
    {%- endfor -%}
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jscom_ice-0.0.4 _includes/posts.html
jscom_ice-0.0.3 _includes/posts.html