...
|
...
|
@@ -59,7 +59,7 @@ end
|
59
|
59
|
# usage rake post[my-new-post] or rake post['my new post'] or rake post (defaults to "new-post")
|
60
|
60
|
desc "Begin a new post in #{source_dir}/#{posts_dir}"
|
61
|
61
|
task :post, :filename do |t, args|
|
62
|
|
- require './_plugins/titlecase.rb'
|
|
62
|
+ require './plugins/titlecase.rb'
|
63
|
63
|
args.with_defaults(:filename => 'new-post')
|
64
|
64
|
open("#{source_dir}/_posts/#{Time.now.strftime('%Y-%m-%d')}-#{args.filename.downcase.gsub(/[ _]/, '-')}.#{post_format}", 'w') do |post|
|
65
|
65
|
system "mkdir -p #{source_dir}/#{posts_dir}";
|