Update history.

This commit is contained in:
Tom Preston-Werner 2012-01-21 19:43:03 -08:00
parent 65890da3d1
commit 03ad973523
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* Allow setting of RedCloth options (#284) * Allow setting of RedCloth options (#284)
* Bug Fixes * Bug Fixes
* Allow some special characters in highlight names * Allow some special characters in highlight names
* URL escape category names in URL generation (#360)
== 0.11.2 / 2011-12-27 == 0.11.2 / 2011-12-27
* Bug Fixes * Bug Fixes

View File

@ -131,7 +131,7 @@ module Jekyll
"title" => CGI.escape(slug), "title" => CGI.escape(slug),
"i_day" => date.strftime("%d").to_i.to_s, "i_day" => date.strftime("%d").to_i.to_s,
"i_month" => date.strftime("%m").to_i.to_s, "i_month" => date.strftime("%m").to_i.to_s,
"categories" => categories.map {|c| URI.escape(c) }.join('/'), "categories" => categories.map { |c| URI.escape(c) }.join('/'),
"output_ext" => self.output_ext "output_ext" => self.output_ext
}.inject(template) { |result, token| }.inject(template) { |result, token|
result.gsub(/:#{Regexp.escape token.first}/, token.last) result.gsub(/:#{Regexp.escape token.first}/, token.last)