lib/octopress-ink.rb in octopress-ink-1.0.0.rc.3 vs lib/octopress-ink.rb in octopress-ink-1.0.0.rc.5

- old
+ new

@@ -66,10 +66,15 @@ @site end def self.site=(site) + # Octopress historically used site.title + # This allows theme developers to expect site.name + # in consistancy with Jekyll's scaffold config + site.config['name'] ||= site.config['title'] + @site = site end def self.payload(payload={}) config = Octopress::Ink::Plugins.config @@ -77,9 +82,17 @@ payload['theme'] = config['theme'] 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']['linkposts'] = site.posts.collect do |p| + p.data['linkpost'] + end + + payload['site']['articles'] = site.posts.reject do |p| + p.data['linkpost'] end payload end