Class: Jekyll::AttendeasePlugin::SponsorsIndexPage
- Inherits:
-
Page
- Object
- Page
- Jekyll::AttendeasePlugin::SponsorsIndexPage
- Defined in:
- lib/jekyll/attendease_plugin/sponsors_index_page.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, sponsor_levels) ⇒ SponsorsIndexPage
constructor
A new instance of SponsorsIndexPage.
Constructor Details
#initialize(site, base, dir, sponsor_levels) ⇒ SponsorsIndexPage
Returns a new instance of SponsorsIndexPage.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/jekyll/attendease_plugin/sponsors_index_page.rb', line 4 def initialize(site, base, dir, sponsor_levels) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_attendease', 'templates', 'sponsors'), 'index.html') self.data['title'] = site.config['sponsors_index_title'] || 'Sponsors' self.data['sponsor_levels'] = sponsor_levels end |