lib/octopress/draft.rb in octopress-3.0.0.rc.17 vs lib/octopress/draft.rb in octopress-3.0.0.rc.18

- old
+ new

@@ -13,11 +13,11 @@ end end def path name = "#{title_slug}.#{extension}" - File.join(source, '_drafts', name) + File.join(site.source, '_drafts', name) end # ----- # Methods for publishing drafts # ----- @@ -39,10 +39,10 @@ 'type' => 'post from draft' } # Create a new post file # - Post.new(post_options).write + Post.new(site, post_options).write # Remove the old draft file # FileUtils.rm @options['path']