Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 656 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 656 Bytes

Jekyll & Octopress Plugins

A collection of plugins for Jekyll & Octopress

Overview

Contains the following plugins:

  • filter_posts : filters any key/value pair from an array of posts.
  • filter_featured : sample shortcut plugin that will return all posts with "featured: true" in the front matter.

Usage

filter_posts

Example Usage:

{{ assign posts = site.posts | filter_posts: 'key', 'value'}}
{% for post in posts %}
	...
{% endfor %}

filter_featured

Example Usage:

{{ assign posts = site.posts | filter_featured}}
{% for post in posts %}
	...
{% endfor %}