Drafts are now marked as published:false

This commit is contained in:
Richard Jones 2011-06-28 06:31:03 -07:00
parent 3389c6d508
commit 29c4808f2a
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,12 @@ module Jekyll
date = Time.parse(item.at('wp:post_date').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
tags = (item/:category).map{|c| c.inner_text}.reject{|c| c == 'Uncategorized'}.uniq
@ -43,6 +49,7 @@ module Jekyll
'tags' => tags,
'status' => status,
'type' => type,
'published' => published,
'meta' => metas
}