Class: Jekyll::AttendeasePlugin::HomePage

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

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir) ⇒ HomePage

Returns a new instance of HomePage.



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

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

  self.process(@name)

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

  self.data['title'] = site.config['homepage_title'] || 'Welcome'
end