Class: JekyllThemeGuidesMbland::GeneratedPage

Inherits:
Jekyll::Page
  • Object
show all
Defined in:
lib/jekyll-theme-guides-mbland/generated_pages.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, layout, nav, parent_url) ⇒ GeneratedPage

Returns a new instance of GeneratedPage.


25
26
27
28
29
30
31
32
33
34
# File 'lib/jekyll-theme-guides-mbland/generated_pages.rb', line 25

def initialize(site, layout, nav, parent_url)
  @site = site
  @name = 'index.html'

  process(@name)
  @data = {}
  data['title'] = nav['text']
  data['permalink'] = parent_url + nav['url']
  data['layout'] = layout
end