Class: Jekyll::Authors::AuthorFeed
- Inherits:
-
Page
- Object
- Page
- Jekyll::Authors::AuthorFeed
- Includes:
- Utils
- Defined in:
- lib/jekyll-authors.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, author) ⇒ AuthorFeed
constructor
A new instance of AuthorFeed.
Methods included from Utils
#author_title_prefix, #display_name
Constructor Details
#initialize(site, base, dir, author) ⇒ AuthorFeed
Returns a new instance of AuthorFeed.
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/jekyll-authors.rb', line 49 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'] = self.data['title'] = "#{}#{}" end |