Class: Jekyll::AttendeasePlugin::PresentersIndexPage

Inherits:
Page
  • Object
show all
Defined in:
lib/jekyll/attendease_plugin/presenters_index_page.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir, presenters) ⇒ PresentersIndexPage

Returns a new instance of PresentersIndexPage.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/jekyll/attendease_plugin/presenters_index_page.rb', line 4

def initialize(site, base, dir, presenters)
  @site = site
  @base = base
  @dir = dir
  @name = 'index.html'

  self.process(@name)

  self.read_yaml(File.join(base, '_attendease', 'templates', 'presenters'), 'index.html')

  self.data['title'] = site.config['presenters_index_title'] || 'Presenters'

  self.data['presenters'] = presenters
end