lib/octopress/draft.rb in octopress-3.0.0.rc.35 vs lib/octopress/draft.rb in octopress-3.0.0.rc.36

- old
+ new

@@ -1,10 +1,11 @@ module Octopress class Draft < Post def set_default_options @options['type'] ||= 'draft' + @options['write_message'] ||= 'New draft:' if @options['title'].nil? && @options[:type] == 'post' raise "Draft not created: Please choose a title.\n".red + " For example: " + "octopress new draft 'The merits of napping'".yellow end @@ -36,10 +37,11 @@ 'title' => @options['title'], 'date' => @options['date'], 'slug' => title_slug, 'content' => read_post_content, 'dir' => @options['dir'], - 'type' => 'post from draft' + 'type' => "post from draft", + 'write_message' => "Published: #{relative_path(path)} →" } # Create a new post file # Post.new(site, post_options).write