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.



63
64
65
66
67
68
69
70
71
72
# File 'lib/jekyll-authors.rb', line 63

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