Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding date to wordpress migrator

  • Loading branch information...
commit b3634b522aed6f2c1ec553564282e69780dc0956 1 parent 13df722
@jmhodges jmhodges authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/jekyll/migrators/wordpress.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.