lib/octopress-ink.rb in octopress-ink-1.0.0.rc.5 vs lib/octopress-ink.rb in octopress-ink-1.0.0.rc.6
- old
+ new
@@ -83,11 +83,13 @@
payload['octopress'] = {}
payload['octopress']['version'] = Octopress::Ink.version
if Octopress::Ink.config['docs_mode']
payload['doc_pages'] = Octopress::Ink::Plugins.doc_pages
end
+
+ payload['site'] ||= {}
- payload['site']['linkposts'] = site.posts.collect do |p|
+ payload['site']['linkposts'] = site.posts.select do |p|
p.data['linkpost']
end
payload['site']['articles'] = site.posts.reject do |p|
p.data['linkpost']