lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.53 vs lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.54

- old
+ new

@@ -37,10 +37,18 @@ def deep_merge(data={}) Jekyll::Utils.deep_merge_hashes(page.data, data) end + def new_page(data={}) + page = Ink::Page.new(Octopress.site, File.dirname(self.path), '.', File.basename(self.path)) + page.data.merge!(data) + page.plugin = plugin + page.asset = self + page + end + def find_page(page) site_dir = Octopress.site.dest dest = page.destination(site_dir) Octopress.site.pages.clone.each do |p| @@ -59,9 +67,10 @@ permalink = page.data['permalink'] end page.data.merge!(@data) page.plugin = plugin + page.asset = self page end end