class Jekyll::PodcastPlayerPage
Public Class Methods
new(site, base, dir, post)
click to toggle source
# File lib/jekyll/podcast_player_page.rb, line 3 def initialize(site, base, dir, post) @site = site @base = base @dir = dir @name = 'index.html' self.process(@name) self.read_yaml(File.join(base, '_layouts'), 'player_index.html') self.data['title'] = post.data['title'] self.data['subtitle'] = post.data['subtitle'] self.data['datum'] = post.data['datum'] self.data['author'] = post.data['author'] self.data['duration'] = post.data['duration'] self.data['summary'] = post.data['summary'] self.data['explicit'] = post.data['explicit'] self.data['audio'] = post.data['audio'] self.data['chapters'] = post.data['chapters'] self.data['template'] = 'player_index' end