fix for history not having a title

This commit is contained in:
Ben Balter 2016-03-08 12:03:22 -05:00
parent 678d494d90
commit 78acdc72e2
1 changed files with 1 additions and 1 deletions

View File

@ -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,