Class: Jekyll::CategoryIndex

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

Instance Attribute Summary

Attributes inherited from Page

#content, #data, #ext, #output, #site

Instance Method Summary collapse

Methods inherited from Page

#process, #render, #write

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