jekyll/lib
Stephen Checkoway 6167c09569 Run hooks in priority order.
Low priority hooks are being run before higher priority hooks. This is easy to
demonstrate with the following plugin:

    1.upto(10).each do |n|
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:low] do
        puts "Low #{n}"
      end
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:normal] do
        puts "Normal #{n}"
      end
      Jekyll::Hooks.register :site, :after_reset, priority: Jekyll::Hooks::PRIORITY_MAP[:high] do
        puts "High #{n}"
      end
    end

Sorting by the negative of the priority and then by the order the hook was
added does the right thing.
2016-08-06 20:56:34 -05:00
..
jekyll Run hooks in priority order. 2016-08-06 20:56:34 -05:00
site_template use jekyll-feed for default site RSS feed 2016-08-03 12:10:44 -04:00
theme_template Missing trailing | 2016-07-28 16:31:20 -04:00
jekyll.rb Stringify configuration overrides before first use 2016-07-08 15:47:26 +02:00