Sha256: 3b0f828571d4364e464ded7e248405908d95e51d08be3f30ebb6e5a872732e9a

Contents?: true

Size: 451 Bytes

Versions: 24

Compression:

Stored size: 451 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] }
      )
      jsonfeeds = Dir["feed.{???,????}.json"]
      site.config.update(
        'json_feed_formats'    => jsonfeeds.map { |f| f.match(/feed\.(\w{3,4})\.json/)[1] }
      )
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
jekyll-octopod-0.9.23 lib/jekyll/update_config.rb
jekyll-octopod-0.9.22 lib/jekyll/update_config.rb
jekyll-octopod-0.9.21 lib/jekyll/update_config.rb
jekyll-octopod-0.9.20 lib/jekyll/update_config.rb
jekyll-octopod-0.9.19 lib/jekyll/update_config.rb
jekyll-octopod-0.9.18 lib/jekyll/update_config.rb
jekyll-octopod-0.9.17 lib/jekyll/update_config.rb
jekyll-octopod-0.9.15 lib/jekyll/update_config.rb
jekyll-octopod-0.9.14 lib/jekyll/update_config.rb
jekyll-octopod-0.9.13 lib/jekyll/update_config.rb
jekyll-octopod-0.9.12 lib/jekyll/update_config.rb
jekyll-octopod-0.9.11 lib/jekyll/update_config.rb
jekyll-octopod-0.9.10 lib/jekyll/update_config.rb
jekyll-octopod-0.9.9 lib/jekyll/update_config.rb
jekyll-octopod-0.9.8 lib/jekyll/update_config.rb
jekyll-octopod-0.9.7 lib/jekyll/update_config.rb
jekyll-octopod-0.9.6 lib/jekyll/update_config.rb
jekyll-octopod-0.9.5 lib/jekyll/update_config.rb
jekyll-octopod-0.9.4 lib/jekyll/update_config.rb
octopod-exe-0.9.4 lib/jekyll/update_config.rb