Update history.
This commit is contained in:
parent
65890da3d1
commit
03ad973523
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue