Fix handling of directories with ~ in them

This commit is contained in:
Ben Hollis 2012-10-10 18:18:30 -07:00
parent 392a4d23f6
commit ee6add032a

View file

@ -127,8 +127,7 @@ module Middleman::CoreExtensions
# @param [String] path # @param [String] path
# @return [Array<Thor::CoreExt::HashWithIndifferentAccess, String>] # @return [Array<Thor::CoreExt::HashWithIndifferentAccess, String>]
def frontmatter_and_content(path) 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) content = File.read(full_path)
data = {} data = {}