Module Nanoc::Helpers::Tagging
In: lib/nanoc/helpers/tagging.rb

Nanoc::Helpers::Tagging provides some support for managing tags added to pages. To add tags to pages, set the tags page attribute to an array of tags that should be applied to the page. For example:

  tags: [ 'foo', 'bar', 'baz' ]

Methods

Public Instance methods

Returns a link to to the specified tag. The link is marked up using the rel-tag microformat.

tag:The name of the tag, which should consist of letters and numbers (no spaces, slashes, or other special characters).
base_url:The URL to which the tag will be appended to construct the link URL. This URL must have a trailing slash.

Returns all pages with the given tag.

Returns a formatted list of tags for the given page as a string. Several parameters allow customization:

:base_url:The URL to which the tag will be appended to construct the link URL. This URL must have a trailing slash. Defaults to "technorati.com/tag/".
:none_text:The text to display when the page has no tags. Defaults to "(none)".
:separator:The separator to put between tags. Defaults to ", ".

[Validate]