Tagging extra helper - aadlani/nanoc-toolbox GitHub Wiki

http://rubydoc.info/github/aadlani/nanoc-toolbox/Nanoc/Toolbox/Helpers/TaggingExtra

Setup

In the folder lib/helpers_.rb add the Helper inclusion as following:

# Helpers of the nanoc-toolbox
include Nanoc::Toolbox::Helpers::TaggingExtra

Usage

Create Tag Page

In your Rules you could use the create_tag_pages in the preprocessor like this.

preprocess do
    create_tag_pages
end

compile '/tags/*/' do
    filter :erb
    layout 'default'
end

Article with tags

<% items_with_tag(tag).each do |article| %>
    <%= link_to article[:title], article %>
<% end %>
⚠️ **GitHub.com Fallback** ⚠️