/jekyll-octopress-filters

Scratchpad for Jekyll / Octopress filters

Primary LanguageRuby

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 %}