module Nanoc::Helpers::Tagging
Public Instance Methods
Source
# File lib/nanoc/helpers/tagging.rb, line 25 def items_with_tag(tag) @items.select { |i| (i[:tags] || []).include?(tag) } end
@param [String] tag
@return [Array]
Source
# File lib/nanoc/helpers/tagging.rb, line 33 def link_for_tag(tag, base_url) %(<a href="#{h base_url}#{h tag}" rel="tag">#{h tag}</a>) end
@param [String] tag @param [String] base_url
@return [String]