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