This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Provides feature related to page tagging | |
# | |
module TagPages | |
# finds out every item containing tags | |
# @return Array an array of Nanoc::Item | |
def tagged_items | |
@items.select do |item| | |
item[:tags].is_a? Array | |
end | |
end |