Class: Jekyll::Podcast::FeedGenerator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::Podcast::FeedGenerator
- Defined in:
- lib/jekyll/podcast/feed_generator.rb
Overview
Generator for podcast feed
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
20 21 22 23 |
# File 'lib/jekyll/podcast/feed_generator.rb', line 20 def generate(site) @site = site site.pages << new_feed_page end |
#new_feed_page ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/jekyll/podcast/feed_generator.rb', line 25 def new_feed_page feed_page = FeedPage.new(@site, __dir__, '', 'feed/podcast') template_path = File.('podcast.xml', __dir__) feed_page.content = File.read(template_path) feed_page.data['layout'] = nil feed_page end |