diff options
| author | davidtsadler <davidtsadler@googlemail.com> | 2012-02-12 11:35:32 +0000 |
|---|---|---|
| committer | davidtsadler <davidtsadler@googlemail.com> | 2012-02-12 11:35:32 +0000 |
| commit | fb704f101ebfdc9be4dcbf0558156c3c3899437b (patch) | |
| tree | 02fec458f49f13f3d19b0da09edc27a1fc8244cc | |
| parent | 3c2ac474f20da6baf804e5c51f62c2c8cb19c6eb (diff) | |
Fix Rakefile.
| -rw-r--r-- | Rakefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
