From b3cec398431c379eebd09679c7ac77766d997aab Mon Sep 17 00:00:00 2001 From: Scott Hill Date: Fri, 6 Aug 2010 10:33:59 -0700 Subject: [PATCH] Now adding a "date" to the YAML front-matter of a post, based on the original date the post was authored according to MT. --- lib/jekyll/migrators/mt.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/jekyll/migrators/mt.rb b/lib/jekyll/migrators/mt.rb index c25ee2ff..414c6366 100644 --- a/lib/jekyll/migrators/mt.rb +++ b/lib/jekyll/migrators/mt.rb @@ -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|