Fix handling of directories with ~ in them

This commit is contained in:
Ben Hollis 2012-10-10 18:18:30 -07:00 committed by Thomas Reynolds
parent 4b52858f61
commit 0bf1b476b0

View file

@ -127,8 +127,7 @@ module Middleman::CoreExtensions
# @param [String] path
# @return [Array<Thor::CoreExt::HashWithIndifferentAccess, String>]
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 = {}