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