Sha256: cc3544073ee3e3de41211693c60bceeced50a1cb20ff518e8205e3eb2dc19be0
Contents?: true
Size: 487 Bytes
Versions: 24
Compression:
Stored size: 487 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
24 entries across 24 versions & 1 rubygems