Permalink
Browse files

adding date to wordpress migrator

  • Loading branch information...
1 parent 13df722 commit b3634b522aed6f2c1ec553564282e69780dc0956 @jmhodges jmhodges committed Jan 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jekyll/migrators/wordpress.rb
@@ -39,7 +39,8 @@ def self.process(dbname, user, pass, host = 'localhost')
'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

0 comments on commit b3634b5

Please sign in to comment.