Removes duplicate mkdir_p
This commit is contained in:
parent
86c72a4ca6
commit
fe19c2aaae
1
Rakefile
1
Rakefile
@ -101,7 +101,6 @@ task :new_post, :title do |t, args|
|
|||||||
end
|
end
|
||||||
puts "Creating new post: #{filename}"
|
puts "Creating new post: #{filename}"
|
||||||
open(filename, 'w') do |post|
|
open(filename, 'w') do |post|
|
||||||
system "mkdir -p #{source_dir}/#{posts_dir}/";
|
|
||||||
post.puts "---"
|
post.puts "---"
|
||||||
post.puts "layout: post"
|
post.puts "layout: post"
|
||||||
post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\""
|
post.puts "title: \"#{title.gsub(/&/,'&').titlecase}\""
|
||||||
|
Loading…
Reference in New Issue
Block a user