Sha256: febc94730e19e9a737b30e74b1e4c333339e864bd1752ac3f8e55a2c76438223
Contents?: true
Size: 491 Bytes
Versions: 4
Compression:
Stored size: 491 Bytes
Contents
module Jekyll class CategoryIndex < Page # Initialize a new CategoryIndex. # +base+ is the String path to the <source> # +dir+ is the String path between <source> and the file # # Returns <CategoryIndex> def initialize(base, dir, category) @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'category_index.html') self.data['category'] = category end end end
Version data entries
4 entries across 4 versions & 1 rubygems