Sha256: 8d49356b7c2e9f7400de63ea31e0f2d40aec4f94b1f5abdab9b7c22eaf0c4c2c
Contents?: true
Size: 488 Bytes
Versions: 13
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Bridgetown 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
13 entries across 13 versions & 1 rubygems