Moved md post into else block. Added _drafts blank dir.

This commit is contained in:
zachgersh 2013-06-05 07:58:50 -07:00
parent a3d53a74be
commit 042c960df0
1 changed files with 4 additions and 4 deletions

View File

@ -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