class Jekyll::TagIndex

Public Class Methods

new(site, base, dir, tag) click to toggle source
# File _plugins/_tag_gen.rb, line 3
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'] || 'Posts Tagged “'
  tag_title_suffix = site.config['tag_title_suffix'] || '”'
  self.data['title'] = "#{tag_title_prefix}#{tag}#{tag_title_suffix}"
end