Fix handling of directories with ~ in them
This commit is contained in:
parent
392a4d23f6
commit
ee6add032a
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue