From 1b330e7a27c93b6bff4f9c6243d4d1e96cf0d1b6 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Wed, 30 Nov 2011 22:06:00 -0800 Subject: [PATCH] Oops - the change to the frontmatter regex broke it somehow. This reverts that change (but also reigns in the file_deleted hook). --- lib/middleman/core_extensions/front_matter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/middleman/core_extensions/front_matter.rb b/lib/middleman/core_extensions/front_matter.rb index 416f686d..28c662fe 100644 --- a/lib/middleman/core_extensions/front_matter.rb +++ b/lib/middleman/core_extensions/front_matter.rb @@ -17,7 +17,7 @@ module Middleman::CoreExtensions::FrontMatter frontmatter.touch_file(file) end - file_deleted do |file| + file_deleted FrontMatter.matcher do |file| frontmatter.remove_file(file) end @@ -52,7 +52,7 @@ module Middleman::CoreExtensions::FrontMatter class FrontMatter class << self def matcher - %r{^source/.*\.html} + %r{source/.*\.html} end end @@ -121,4 +121,4 @@ module Middleman::CoreExtensions::FrontMatter [data, content] end end -end \ No newline at end of file +end