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,18 +17,18 @@ module Jekyll
create_blank_site new_blog_path create_blank_site new_blog_path
else else
create_sample_files new_blog_path create_sample_files new_blog_path
end
File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f| File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f|
f.write(self.scaffold_post_content(site_template)) f.write(self.scaffold_post_content(site_template))
end end
end
puts "New jekyll site installed in #{new_blog_path}." puts "New jekyll site installed in #{new_blog_path}."
end end
def self.create_blank_site(path) def self.create_blank_site(path)
Dir.chdir(path) do Dir.chdir(path) do
FileUtils.mkdir(%w(_layouts _posts)) FileUtils.mkdir(%w(_layouts _posts _drafts))
FileUtils.touch("index.html") FileUtils.touch("index.html")
end end
end end