Sha256: ba376ac0b63296936c07a3c872ffd450160ff9263dae06df3171bf88c51cbac6
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 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-auto"> <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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jscom_ice-0.0.5 | _includes/posts.html |