diff --git a/middleman-core/lib/middleman-core/core_extensions/front_matter.rb b/middleman-core/lib/middleman-core/core_extensions/front_matter.rb index 9f55c60e..bfc6f87c 100644 --- a/middleman-core/lib/middleman-core/core_extensions/front_matter.rb +++ b/middleman-core/lib/middleman-core/core_extensions/front_matter.rb @@ -127,8 +127,7 @@ module Middleman::CoreExtensions # @param [String] path # @return [Array] def frontmatter_and_content(path) - full_path = File.expand_path(path, @app.source_dir) - + full_path = File.expand_path(File.join(@app.source_dir, path)) content = File.read(full_path) data = {}