Sha256: 3ccef1299a06cac4c141e5b07fc9d4599a52253687811915e288cf31e19e1d86
Contents?: true
Size: 543 Bytes
Versions: 4
Compression:
Stored size: 543 Bytes
Contents
module Jekyll class ChapterPage < Page def initialize(site, params) @site = site @base = site.source path = File.join(params["name"], File.dirname(params["link"])) @dir = File.join(params["destination"], path) @name = File.basename(params["link"]) self.process(name) read_yaml( File.dirname( File.join(@base, params["source"], path) ), name ) self.data = params["chapter"].merge(self.data) self.data["parts"] = [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems