lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.3 vs lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.5
- old
+ new
@@ -24,10 +24,19 @@
if page.url && !Ink.config['docs_mode']
Ink.site.pages << page unless Helpers::Path.find_page(page)
end
end
+ def page
+ @page ||= Page.new(Ink.site, source_dir, page_dir, file, plugin.config)
+ end
+
+ def info
+ message = super
+ message.ljust(25) + url_info
+ end
+
private
def page_dir
dir == '.' ? '' : dir
end
@@ -42,12 +51,9 @@
def user_dir
File.join Ink.site.source, Plugins.custom_dir, plugin.slug, base
end
- def page
- @page ||= Page.new(Ink.site, source_dir, page_dir, file, plugin.config)
- end
end
end
end
end