adding date to wordpress migrator

This commit is contained in:
Jeff Hodges 2011-01-12 19:37:38 -08:00
parent 13df722073
commit b3634b522a
1 changed files with 2 additions and 1 deletions

View File

@ -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