Now adding a "date" to the YAML front-matter of a post, based on the original date the post was authored according to MT.
This commit is contained in:
parent
f6acbb869e
commit
b3cec39843
|
@ -47,6 +47,7 @@ module Jekyll
|
|||
'layout' => 'post',
|
||||
'title' => title.to_s,
|
||||
'mt_id' => post[:entry_id],
|
||||
'date' => date
|
||||
}.delete_if { |k,v| v.nil? || v == ''}.to_yaml
|
||||
|
||||
File.open("_posts/#{name}", "w") do |f|
|
||||
|
|
Loading…
Reference in New Issue