Tweak resource manipulator order
This commit is contained in:
parent
5760d64ef9
commit
b0ea4e7608
|
@ -10,6 +10,9 @@ require 'active_support/json'
|
||||||
# Extensions namespace
|
# Extensions namespace
|
||||||
module Middleman::CoreExtensions
|
module Middleman::CoreExtensions
|
||||||
class FrontMatter < ::Middleman::Extension
|
class FrontMatter < ::Middleman::Extension
|
||||||
|
# Try to run after routing but before directory_indexes
|
||||||
|
self.resource_list_manipulator_priority = 90
|
||||||
|
|
||||||
YAML_ERRORS = [StandardError]
|
YAML_ERRORS = [StandardError]
|
||||||
|
|
||||||
# https://github.com/tenderlove/psych/issues/23
|
# https://github.com/tenderlove/psych/issues/23
|
||||||
|
|
|
@ -4,7 +4,7 @@ module Middleman
|
||||||
class Routing < Extension
|
class Routing < Extension
|
||||||
# This should always run late, but not as late as :directory_indexes,
|
# This should always run late, but not as late as :directory_indexes,
|
||||||
# so it can add metadata to any pages generated by other extensions
|
# 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)
|
def initialize(app, options_hash={}, &block)
|
||||||
super
|
super
|
||||||
|
|
Loading…
Reference in a new issue