Class: Jekyll::Podcast::ContributorPageGenerator::Generator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::Podcast::ContributorPageGenerator::Generator
- Defined in:
- lib/jekyll/podcast/contributor_page_generator.rb
Overview
Adds posts to each contributor page on the site
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/jekyll/podcast/contributor_page_generator.rb', line 8 def generate(site) @site = site collect_contributor_posts @site.documents.each do |doc| next unless doc.type == contributors_alias.to_sym doc.data['posts'] = @contributor_posts[doc.data['title']] end end |