Class: Jekyll::PodcastPlayerPage

Inherits:
Page
  • Object
show all
Defined in:
lib/jekyll/podcast_player_page.rb

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir, post) ⇒ PodcastPlayerPage

Returns a new instance of PodcastPlayerPage.



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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