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
|
end
|
||||||
|
|
||||||
def touch_file(file)
|
def touch_file(file)
|
||||||
|
extension = File.extname(file).sub(/\./, "")
|
||||||
|
return unless ::Tilt.mappings.has_key?(extension)
|
||||||
|
|
||||||
content = File.read(file)
|
content = File.read(file)
|
||||||
file = file.sub(@source, "")
|
file = file.sub(@source, "")
|
||||||
result = parse_front_matter(content)
|
result = parse_front_matter(content)
|
||||||
|
|
|
@ -23,7 +23,6 @@ module Middleman
|
||||||
options_hash << ", :#{k} => '#{v}'"
|
options_hash << ", :#{k} => '#{v}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
$stderr.puts options_hash.inspect
|
|
||||||
guardfile_contents = %Q{
|
guardfile_contents = %Q{
|
||||||
guard 'middleman'#{options_hash} do
|
guard 'middleman'#{options_hash} do
|
||||||
watch(%r{(.*)})
|
watch(%r{(.*)})
|
||||||
|
|
Loading…
Reference in a new issue