Sha256: f9373521b0dd00bb3eae5d9b529a33bc11076ff643ae26b9dae3f4d264b7cf7c

Contents?: true

Size: 380 Bytes

Versions: 44

Compression:

Stored size: 380 Bytes

Contents

module Jekyll
  class PodcastPlayerPageGenerator < Generator
    safe true

    def generate(site)
      if site.layouts.key? 'player_index'
        dir =  site.config['players_dir'] || 'players'
        site.posts.docs.each do |post|
          site.pages << PodcastPlayerPage.new(site, site.source, File.join(dir, post.data['slug']), post)
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
jekyll-octopod-0.7.3 lib/jekyll/podcast_player_page_generator.rb
jekyll-octopod-0.7.2 lib/jekyll/podcast_player_page_generator.rb
jekyll-octopod-0.7.1 lib/jekyll/podcast_player_page_generator.rb
jekyll-octopod-0.7.0 lib/jekyll/podcast_player_page_generator.rb