diff --git a/lib/jekyll/commands/new.rb b/lib/jekyll/commands/new.rb index 348c4f47..8757a91b 100644 --- a/lib/jekyll/commands/new.rb +++ b/lib/jekyll/commands/new.rb @@ -17,10 +17,10 @@ module Jekyll create_blank_site new_blog_path else create_sample_files new_blog_path - end - File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f| - f.write(self.scaffold_post_content(site_template)) + File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f| + f.write(self.scaffold_post_content(site_template)) + end end puts "New jekyll site installed in #{new_blog_path}." @@ -28,7 +28,7 @@ module Jekyll def self.create_blank_site(path) Dir.chdir(path) do - FileUtils.mkdir(%w(_layouts _posts)) + FileUtils.mkdir(%w(_layouts _posts _drafts)) FileUtils.touch("index.html") end end