Class: Jekyll::Authors::AuthorFeed
- Inherits:
-
Page
- Object
- Page
- Jekyll::Authors::AuthorFeed
- Defined in:
- lib/jekyll-authors.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, author) ⇒ AuthorFeed
constructor
A new instance of AuthorFeed.
Constructor Details
#initialize(site, base, dir, author) ⇒ AuthorFeed
Returns a new instance of AuthorFeed.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/jekyll-authors.rb', line 22 def initialize(site, base, dir, ) @site = site @base = base @dir = dir @name = 'atom.xml' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'author_feed.xml') self.data['author'] = = site.config['author_title_prefix'] || 'Author: ' self.data['title'] = "#{author_title_prefix}#{author}" end |