Class: Jekyll::Authors::AuthorList

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

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir, authors) ⇒ AuthorList

Returns a new instance of AuthorList.



37
38
39
40
41
42
43
44
45
46
# File 'lib/jekyll-authors.rb', line 37

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

  self.process(@name)
  self.read_yaml(File.join(base, '_layouts'), 'author_list.html')
  self.data['authors'] = authors
end