don't try to parse frontmatter from binary files, duh
This commit is contained in:
parent
d018511606
commit
610509b373
|
@ -76,6 +76,9 @@ module Middleman::CoreExtensions::FrontMatter
|
|||
end
|
||||
|
||||
def touch_file(file)
|
||||
extension = File.extname(file).sub(/\./, "")
|
||||
return unless ::Tilt.mappings.has_key?(extension)
|
||||
|
||||
content = File.read(file)
|
||||
file = file.sub(@source, "")
|
||||
result = parse_front_matter(content)
|
||||
|
|
|
@ -23,7 +23,6 @@ module Middleman
|
|||
options_hash << ", :#{k} => '#{v}'"
|
||||
end
|
||||
|
||||
$stderr.puts options_hash.inspect
|
||||
guardfile_contents = %Q{
|
||||
guard 'middleman'#{options_hash} do
|
||||
watch(%r{(.*)})
|
||||
|
|
Loading…
Reference in a new issue