Tweak resource manipulator order

This commit is contained in:
Ben Hollis 2014-05-30 22:32:39 -07:00
parent 5760d64ef9
commit b0ea4e7608
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,9 @@ require 'active_support/json'
# Extensions namespace
module Middleman::CoreExtensions
class FrontMatter < ::Middleman::Extension
# Try to run after routing but before directory_indexes
self.resource_list_manipulator_priority = 90
YAML_ERRORS = [StandardError]
# https://github.com/tenderlove/psych/issues/23

View file

@ -4,7 +4,7 @@ module Middleman
class Routing < Extension
# This should always run late, but not as late as :directory_indexes,
# so it can add metadata to any pages generated by other extensions
self.resource_list_manipulator_priority = 90
self.resource_list_manipulator_priority = 80
def initialize(app, options_hash={}, &block)
super