_plugins/jekyll_category_sort.rb
# Filter content collection by the "include_tags" attribute on the config
#   +content_collection+ an array of hashes
#   +tags+ an array of tags to filter by 
#
# Returns a filtered collection by tag
Filter content collection by the "include_tags" attribute on the config
+content_collection+ an array of hashes
+tags+ an array of tags to filter by

Returns a filtered collection by tag
Filter content collection by the " include_tags " attribute on the config + content_collection + an array of hashes + tags + an array of tags to filter by Returns a filtered collection by tag
def filter_by_tag(content_collection, tags)
        filtered = []
        content_collection.each { |item|
          tags.each do |tag|
            if item["tags"].include?(tag) || item["tags"].include?(tag.capitalize)
              filtered.push(item)
              next
            end
          end
        }
        filtered
      end
def filter_by_tag ( content_collection , tags ) filtered = [ ] content_collection . each { | item | tags . each do | tag | if item [ "tags" ] . include? ( tag ) || item [ "tags" ] . include? ( tag . capitalize ) filtered . push ( item ) next end end } filtered end
Filter content collection by the "include_tags" attribute on the config
+content_collection+ an array of hashes
+tags+ an array of tags to filter by
Filter content collection by the " include_tags " attribute on the config + content_collection + an array of hashes + tags + an array of tags to filter by
content_collection
<not_specific>
tags
<not_specific>