Class: Jekyll::CategoryIndex
Instance Attribute Summary
Attributes inherited from Page
#content, #data, #ext, #output, #site
Instance Method Summary collapse
-
#initialize(base, dir, category) ⇒ CategoryIndex
constructor
Initialize a new CategoryIndex.
Methods inherited from Page
Methods included from Convertible
#content_type, #do_layout, #read_yaml, #to_s, #transform
Constructor Details
#initialize(base, dir, category) ⇒ CategoryIndex
Initialize a new CategoryIndex.
+base+ is the String path to the <source>
+dir+ is the String path between <source> and the file
Returns <CategoryIndex>
9 10 11 12 13 14 15 16 |
# File 'lib/jekyll/category_index.rb', line 9 def initialize(base, dir, category) @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'category_index.html') self.data['category'] = category end |