mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Fixed undefined variable timezone in Rakefile
It made it impossible to create a new page on 2.1
This commit is contained in:
parent
9254c233b9
commit
a6f2fdccd5
4
Rakefile
4
Rakefile
@ -135,7 +135,7 @@ task :new_post, :title do |t, args|
|
||||
title = get_stdin("Enter a title for your post: ")
|
||||
end
|
||||
raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(configuration[:source])
|
||||
time = now_in_timezone(configuration[:timezone])
|
||||
time = now_in_timezone(configuration[:timezone])
|
||||
mkdir_p "#{configuration[:source]}/#{configuration[:posts_dir]}"
|
||||
filename = "#{configuration[:source]}/#{configuration[:posts_dir]}/#{Time.now.strftime('%Y-%m-%d')}-#{title.to_url}.#{configuration[:new_post_ext]}"
|
||||
if File.exist?(filename)
|
||||
@ -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'
|
||||
end
|
||||
puts "Creating new page: #{file}"
|
||||
time = now_in_timezone(timezone)
|
||||
time = now_in_timezone(configuration[:timezone])
|
||||
open(file, 'w') do |page|
|
||||
page.puts "---"
|
||||
page.puts "layout: page"
|
||||
|
Loading…
Reference in New Issue
Block a user