class Jekyll::Paginate::Categories::CategoryPage
Constants
- ATTRIBUTES_FOR_LIQUID
Attributes for Liquid templates
Public Class Methods
new(site, base, category)
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. category - The String category
Calls superclass method
# File lib/jekyll-paginate-categories/category-page.rb, line 23 def initialize(site, base, category) layout = site.config['paginate_category_layout'] || 'category.html' super(site, base, '_layouts', layout) process('index.html') # Get the category into layout using page.category @category = category end
Public Instance Methods
category()
click to toggle source
Produce a category object suitable for Liquid.
Returns a String
# File lib/jekyll-paginate-categories/category-page.rb, line 35 def category if @category.is_a? String @category end end