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