lib/octopress-ink/jekyll/hooks.rb in octopress-ink-1.0.0.alpha.29 vs lib/octopress-ink/jekyll/hooks.rb in octopress-ink-1.0.0.alpha.30
- old
+ new
@@ -2,16 +2,15 @@
module Convertible
alias_method :do_layout_orig, :do_layout
def do_layout(payload, layouts)
# The contentblock tags needs access to the converter to process it while rendering.
- config = Octopress::Plugins.config(payload['site'])
+ config = Octopress::Plugins.config
payload['plugins'] = config['plugins']
payload['theme'] = config['theme']
payload['converter'] = self.converter
- self.site.config['octopress'] = {}
- self.site.config['octopress']['theme'] = config['theme']
- self.site.config['octopress']['plugins'] = config['plugins']
+ payload['octopress'] = {}
+ payload['octopress']['version'] = Octopress.version
do_layout_orig(payload, layouts)
end
end
# Create a new page class to allow partials to trigger Jekyll Page Hooks.