From b3634b522aed6f2c1ec553564282e69780dc0956 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Wed, 12 Jan 2011 19:37:38 -0800 Subject: [PATCH] adding date to wordpress migrator --- lib/jekyll/migrators/wordpress.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/migrators/wordpress.rb b/lib/jekyll/migrators/wordpress.rb index 11b4f49a..4b01726c 100644 --- a/lib/jekyll/migrators/wordpress.rb +++ b/lib/jekyll/migrators/wordpress.rb @@ -39,7 +39,8 @@ module Jekyll 'title' => title.to_s, 'excerpt' => post[:post_excerpt].to_s, 'wordpress_id' => post[:ID], - 'wordpress_url' => post[:guid] + 'wordpress_url' => post[:guid], + 'date' => date }.delete_if { |k,v| v.nil? || v == ''}.to_yaml # Write out the data and content to file