Drafts are now marked as published:false
This commit is contained in:
parent
3389c6d508
commit
29c4808f2a
|
@ -26,6 +26,12 @@ module Jekyll
|
||||||
|
|
||||||
date = Time.parse(item.at('wp:post_date').inner_text)
|
date = Time.parse(item.at('wp:post_date').inner_text)
|
||||||
status = item.at('wp:status').inner_text
|
status = item.at('wp:status').inner_text
|
||||||
|
if status == "draft"
|
||||||
|
published = false
|
||||||
|
else
|
||||||
|
published = true
|
||||||
|
end
|
||||||
|
|
||||||
type = item.at('wp:post_type').inner_text
|
type = item.at('wp:post_type').inner_text
|
||||||
tags = (item/:category).map{|c| c.inner_text}.reject{|c| c == 'Uncategorized'}.uniq
|
tags = (item/:category).map{|c| c.inner_text}.reject{|c| c == 'Uncategorized'}.uniq
|
||||||
|
|
||||||
|
@ -43,6 +49,7 @@ module Jekyll
|
||||||
'tags' => tags,
|
'tags' => tags,
|
||||||
'status' => status,
|
'status' => status,
|
||||||
'type' => type,
|
'type' => type,
|
||||||
|
'published' => published,
|
||||||
'meta' => metas
|
'meta' => metas
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue