blob: 062be42a4b46182fecb17547da52d0d1e6fd1abf [file] [log] [blame]
module Jekyll
class CollectionReader
SPECIAL_COLLECTIONS = %w(posts data).freeze
attr_reader :site, :content
def initialize(site)
@site = site
@content = {}
end
# Read in all collections specified in the configuration
#
# Returns nothing.
def read
site.collections.each do |_, collection|
collection.read unless SPECIAL_COLLECTIONS.include?(collection.label)
end
end
end
end