Sha256: 5eae6e8dbf7c34ac84723b24bcf1806749bc12d12d35e1ca0f53be523d440012
Contents?: true
Size: 480 Bytes
Versions: 2
Compression:
Stored size: 480 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 do |_, collection| collection.read unless SPECIAL_COLLECTIONS.include?(collection.label) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-3.6.0 | lib/jekyll/readers/collection_reader.rb |
jekyll-3.6.0.pre.beta1 | lib/jekyll/readers/collection_reader.rb |