Class: Jekyll::Categories::CategoryList
- Inherits:
-
Page
- Object
- Page
- Jekyll::Categories::CategoryList
- Defined in:
- lib/jekyll-categories.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, categories) ⇒ CategoryList
constructor
A new instance of CategoryList.
Constructor Details
#initialize(site, base, dir, categories) ⇒ CategoryList
Returns a new instance of CategoryList.
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/jekyll-categories.rb', line 38 def initialize(site, base, dir, categories) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'category_list.html') self.data['categories'] = categories end |