Sha256: f1a911a42dceaac8279511a1bdbaa83a0a48b39279315a2e530d4bc6e47e49ac
Contents?: true
Size: 483 Bytes
Versions: 30
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true 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_value do |collection| collection.read unless SPECIAL_COLLECTIONS.include?(collection.label) end end end end
Version data entries
30 entries across 30 versions & 2 rubygems