From 78acdc72e2e45dbfe17a0b8c13312bc701852d0c Mon Sep 17 00:00:00 2001 From: Ben Balter Date: Tue, 8 Mar 2016 12:03:22 -0500 Subject: [PATCH] fix for history not having a title --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d43657232..fbbf017e8 100644 --- a/Rakefile +++ b/Rakefile @@ -89,7 +89,7 @@ end def siteify_file(file, front_matter = {}) abort "You seem to have misplaced your #{file} file. I can haz?" unless File.exists?(file) - title = File.read(file).match(/\A# (.*)$/)[1] + title = File.read(file)[/\A# (.*)$/, 1] slug = File.basename(file, ".markdown").downcase front_matter = front_matter.merge({ "title" => title,