mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-18 12:52:47 +00:00
Set draft post's kind to 'draft' to the blogging helper ignores them
This commit is contained in:
parent
20e39db778
commit
493678c336
1 changed files with 1 additions and 1 deletions
|
@ -109,8 +109,8 @@ module Importer
|
|||
:section => find_topmost_category(@categories[categories.first])[:slug],
|
||||
:title => get(post, 'title'),
|
||||
:created_at => get(post, 'wp:post_date_gmt'),
|
||||
:kind => 'article',
|
||||
}
|
||||
attributes[:kind] = attributes[:status] == 'publish' ? 'article' : 'draft'
|
||||
|
||||
if attributes[:slug].empty?
|
||||
puts "WARNING: Error post #{attributes[:post_id]} has no slug, generating one"
|
||||
|
|
Loading…
Reference in a new issue