Sha256: c4d5332672aa2a1fc15141526ac4b7140b52432b40c95577e3a57e92b77bb402

Contents?: true

Size: 517 Bytes

Versions: 20

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

unless Jekyll::VERSION.start_with? "2."
  require "jekyll"

  module CloudCannonJekyll
    # Reads data files and creates a collections-style hash representation
    class DataReader < Jekyll::DataReader
      # Determines how to read a data file.
      # This is overridden return a hash instead of reading the file.
      #
      # Returns a hash with the path to the data file.
      def read_data_file(path)
        {
          "path" => path,
        }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
cloudcannon-jekyll-2.3.4 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.3.3 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.3.2 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.3.1 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.3.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.2.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.1.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.0.2 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.0.1 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.5.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-2.0.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.6.1 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.4.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.6.0 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.7 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.6 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.5 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.3.4 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-1.5.4 lib/cloudcannon-jekyll/readers/data-reader.rb
cloudcannon-jekyll-0.3.3 lib/cloudcannon-jekyll/readers/data-reader.rb