diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index 10069f6c..032fe265 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -76,9 +76,9 @@ module Jekyll # See url.rb for an explanation def url_placeholders { - "path" => @dir, - "basename" => self.basename, - "output_ext" => self.output_ext + :path => @dir, + :basename => self.basename, + :output_ext => self.output_ext } end diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 6b5c38d5..8a52efc3 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -208,16 +208,16 @@ module Jekyll # See url.rb for an explanation def url_placeholders { - "year" => date.strftime("%Y"), - "month" => date.strftime("%m"), - "day" => date.strftime("%d"), - "title" => CGI.escape(slug), - "i_day" => date.strftime("%d").to_i.to_s, - "i_month" => date.strftime("%m").to_i.to_s, - "categories" => (categories || []).map { |c| URI.escape(c.to_s) }.join('/'), - "short_month" => date.strftime("%b"), - "y_day" => date.strftime("%j"), - "output_ext" => self.output_ext + :year => date.strftime("%Y"), + :month => date.strftime("%m"), + :day => date.strftime("%d"), + :title => CGI.escape(slug), + :i_day => date.strftime("%d").to_i.to_s, + :i_month => date.strftime("%m").to_i.to_s, + :categories => (categories || []).map { |c| URI.escape(c.to_s) }.join('/'), + :short_month => date.strftime("%b"), + :y_day => date.strftime("%j"), + :output_ext => self.output_ext } end