From fb704f101ebfdc9be4dcbf0558156c3c3899437b Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Sun, 12 Feb 2012 11:35:32 +0000 Subject: Fix Rakefile. --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 44d0628..814c8bc 100644 --- a/Rakefile +++ b/Rakefile @@ -20,7 +20,7 @@ namespace :site do end desc 'Builds the site so that it can be deployed.' - task :production => [:clean] do + task :production => [:'test_posts:clean', :clean] do system 'bundle exec jekyll' end end @@ -54,7 +54,7 @@ namespace :test_posts do desc 'Deletes any test posts.' task :clean => [:load_config] do - FileUtils.rm_rf(@config['posts']) + FileUtils.rm_rf(@config['posts'] + '/test') end desc 'Creates the required posts directory if one does not exist.' @@ -65,7 +65,7 @@ namespace :test_posts do private def save_post(date, title, author, description, categories, test = false) - template = File.read("templates/post.markdown") + template = File.read("lib/templates/post.markdown") template.gsub!(/:title/, title) template.gsub!(/:author/, author) template.gsub!(/:description/, description) -- cgit v1.2.3-13-gbd6f