Sha256: 1c924fb63d38e6e796cbd8a5e3d2b4b19654b5cca3851f2233d5c07b3552d861

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

class Builders::GeneratedPages < SiteBuilder
  def build
    generator do
      generated_page = Bridgetown::GeneratedPage.new(site, site.source, "/", "generated_page.erb")
      generated_page.content = "<%= 'created from a plugin'.capitalize %>"
      generated_page.data.layout = "default"

      site.generated_pages << generated_page
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bridgetown-sitemap-2.0.2 test/fixtures/plugins/builders/generated_pages.rb
bridgetown-sitemap-2.0.1 test/fixtures/plugins/builders/generated_pages.rb
bridgetown-sitemap-2.0.0 test/fixtures/plugins/builders/generated_pages.rb
bridgetown-sitemap-1.2.0 test/fixtures/plugins/builders/generated_pages.rb