lib/octopress-ink/assets/layout.rb in octopress-ink-1.0.0.alpha.44 vs lib/octopress-ink/assets/layout.rb in octopress-ink-1.0.0.alpha.45

- old
+ new

@@ -6,16 +6,18 @@ def initialize(plugin, base, file) super register end + private + def register dir = user_dir if !exists?(File.join(dir, file)) dir = plugin_dir end - Plugins.site.layouts[name] = Jekyll::Layout.new(Plugins.site, dir, file) + Ink.site.layouts[name] = Jekyll::Layout.new(Ink.site, dir, file) end def name name = "#{plugin.slug}:#{file}" # remove extension