ruhoh / sub-collections

Example website demonstrating sub-collections via custom filter plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample ruhoh website demonstrating the page.filter custom plugin (see plugins folder).

page.filter is the same as collection.filter only it automatically scopes itself to the directory that page is in.

<h3>Track Listings</h3>
<ul>
{{# page.filter.tracks/ }}
  <li>
    <a href="{{ url }}">({{ title }}) {{ url }}</a>
  </li>
{{/ page.filter.tracks/ }}
</ul>

Examples can be seen by running this website and going to:

About

Example website demonstrating sub-collections via custom filter plugins


Languages

Language:Ruby 100.0%