lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.25 vs lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.26
- old
+ new
@@ -27,10 +27,10 @@
plugin.config['permalinks'][File.basename(filename, '.*')] ||= page.url
end
end
def find_page(page)
- site_dir = Octopress.site.config['destination']
+ site_dir = Octopress.site.dest
dest = page.destination(site_dir)
Octopress.site.pages.clone.each do |p|
return p if p.destination(site_dir) == dest
end