diff --git a/middleman-core/lib/middleman-core/sitemap/extensions/metadata_for_path.rb b/middleman-core/lib/middleman-core/sitemap/extensions/metadata_for_path.rb new file mode 100644 index 00000000..10463cab --- /dev/null +++ b/middleman-core/lib/middleman-core/sitemap/extensions/metadata_for_path.rb @@ -0,0 +1,17 @@ +module Middleman + module Sitemap + module Extensions + + # Add metadata to Resources based on path matchers. This exists + # entirely to support the "page" method in config.rb. + + # TODO: This requires the concept of priority for sitemap manipulators + # in order for it to always run after all other manipulators. + class MetadataForPath + def initialize(sitemap) + @app = sitemap.app + end + end + end + end +end