Sha256: 36313d43876413794bd0608a93653d801981af41d12b4b2cbba0c44c25969a22
Contents?: true
Size: 484 Bytes
Versions: 11
Compression:
Stored size: 484 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
11 entries across 11 versions & 1 rubygems