mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
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:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user