Sha256: 7d8422859a02321bc3adbc31e46fbf1e352fd2dfc81bda0ffa9743c64492ff69

Contents?: true

Size: 279 Bytes

Versions: 20

Compression:

Stored size: 279 Bytes

Contents

module Jekyll
  module UpdateConfig
    Jekyll::Hooks.register :site, :after_init do |site|
      feeds = Dir["episodes.{???,????}.rss"]
      site.config.update(
        'episode_feed_formats' => feeds.map { |f| f.match(/episodes\.(\w{3,4})\.rss/)[1] }
      )
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
jekyll-octopod-0.8.9 lib/jekyll/update_config.rb
jekyll-octopod-0.8.8 lib/jekyll/update_config.rb
jekyll-octopod-0.8.7 lib/jekyll/update_config.rb
jekyll-octopod-0.8.6 lib/jekyll/update_config.rb
jekyll-octopod-0.8.5 lib/jekyll/update_config.rb
jekyll-octopod-0.8.4 lib/jekyll/update_config.rb
jekyll-octopod-0.8.3 lib/jekyll/update_config.rb
jekyll-octopod-0.8.2 lib/jekyll/update_config.rb
jekyll-octopod-0.8.1 lib/jekyll/update_config.rb
jekyll-octopod-0.8.0 lib/jekyll/update_config.rb
jekyll-octopod-0.7.9 lib/jekyll/update_config.rb
jekyll-octopod-0.7.8 lib/jekyll/update_config.rb
jekyll-octopod-0.7.7 lib/jekyll/update_config.rb
jekyll-octopod-0.7.6 lib/jekyll/update_config.rb
jekyll-octopod-0.7.5 lib/jekyll/update_config.rb
jekyll-octopod-0.7.4 lib/jekyll/update_config.rb
jekyll-octopod-0.7.3 lib/jekyll/update_config.rb
jekyll-octopod-0.7.2 lib/jekyll/update_config.rb
jekyll-octopod-0.7.1 lib/jekyll/update_config.rb
jekyll-octopod-0.7.0 lib/jekyll/update_config.rb