Class: Jekyll::Authors::TagIndex
- Inherits:
-
Page
- Object
- Page
- Jekyll::Authors::TagIndex
- Defined in:
- lib/jekyll-authors/tags.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, tag) ⇒ TagIndex
constructor
A new instance of TagIndex.
Constructor Details
#initialize(site, base, dir, tag) ⇒ TagIndex
Returns a new instance of TagIndex.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/jekyll-authors/tags.rb', line 4 def initialize(site, base, dir, tag) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'tag_index.html') self.data['tag'] = tag tag_title_prefix = site.config['tag_title_prefix'] || 'Tag: ' self.data['title'] = "#{tag_title_prefix}#{tag}" end |