Fixed undefined variable timezone in Rakefile

It made it impossible to create a new page on 2.1
This commit is contained in:
Grégory Karékinian 2013-02-14 17:44:39 +01:00
parent 9254c233b9
commit a6f2fdccd5

View File

@ -178,7 +178,7 @@ task :new_page, :filename do |t, args|
abort("rake aborted!") if ask("#{file} already exists. Do you want to overwrite?", ['y', 'n']) == 'n' abort("rake aborted!") if ask("#{file} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
end end
puts "Creating new page: #{file}" puts "Creating new page: #{file}"
time = now_in_timezone(timezone) time = now_in_timezone(configuration[:timezone])
open(file, 'w') do |page| open(file, 'w') do |page|
page.puts "---" page.puts "---"
page.puts "layout: page" page.puts "layout: page"