class Jekyll::Paginate::Tags::TagPage
Constants
- ATTRIBUTES_FOR_LIQUID
Attributes for Liquid templates
Public Class Methods
new(site, base, tag)
click to toggle source
Initialize a new Page.
site - The Site object. base - The String path to the source. dir - The String path between the source and the file. name - The String filename of the file. tag - The String tag
Calls superclass method
# File lib/jekyll-paginate-tags/tag-page.rb, line 23 def initialize(site, base, tag) layout = site.config['paginate_tag_layout'] || 'tag.html' super(site, base, '_layouts', layout) process('index.html') # Get the tag into layout using page.tag @tag = tag end
Public Instance Methods
tag()
click to toggle source
Produce a tag object suitable for Liquid.
Returns a String
# File lib/jekyll-paginate-tags/tag-page.rb, line 35 def tag if @tag.is_a? String @tag end end