Class: Jekyll::Categories::TagFeed
- Inherits:
-
Page
- Object
- Page
- Jekyll::Categories::TagFeed
- Defined in:
- lib/jekyll-categories/tags.rb
Instance Method Summary collapse
-
#initialize(site, base, dir, tag) ⇒ TagFeed
constructor
A new instance of TagFeed.
Constructor Details
#initialize(site, base, dir, tag) ⇒ TagFeed
Returns a new instance of TagFeed.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/jekyll-categories/tags.rb', line 20 def initialize(site, base, dir, tag) @site = site @base = base @dir = dir @name = 'atom.xml' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'tag_feed.xml') self.data['tag'] = tag tag_title_prefix = site.config['tag_title_prefix'] || 'Tag: ' self.data['title'] = "#{tag_title_prefix}#{tag}" end |