Sha256: 73b2d800598da23facdd972e189b8b4c74fe58701894d83eb61db4ab2240540f

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

# This Document subclass is used to stand in for gallery indices which do not have a `index.html`
class CheesyGallery::GalleryIndex < Jekyll::Document
  DEFAULT_CONTENT = "This page intentionally left plank.\n"

  # skip reading content, as there is by definition no backing file for this
  def read_content(_opts = nil)
    self.content = DEFAULT_CONTENT
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cheesy-gallery-1.1.1 lib/cheesy-gallery/gallery_index.rb