fix for history not having a title
This commit is contained in:
parent
678d494d90
commit
78acdc72e2
2
Rakefile
2
Rakefile
|
|
@ -89,7 +89,7 @@ end
|
||||||
|
|
||||||
def siteify_file(file, front_matter = {})
|
def siteify_file(file, front_matter = {})
|
||||||
abort "You seem to have misplaced your #{file} file. I can haz?" unless File.exists?(file)
|
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
|
slug = File.basename(file, ".markdown").downcase
|
||||||
front_matter = front_matter.merge({
|
front_matter = front_matter.merge({
|
||||||
"title" => title,
|
"title" => title,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue