From ee6add032ae5d211b7bbd4e9277c1133d1fd06d8 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Wed, 10 Oct 2012 18:18:30 -0700 Subject: [PATCH] Fix handling of directories with ~ in them --- .../lib/middleman-core/core_extensions/front_matter.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = {}