improving strftime call

set non padded config to avoid parse string type twice
This commit is contained in:
Luciano Sousa 2014-08-01 00:02:41 -03:00
parent 413e22ce2b
commit 33cd956e4e
1 changed files with 2 additions and 2 deletions

View File

@ -223,8 +223,8 @@ module Jekyll
:month => date.strftime("%m"),
:day => date.strftime("%d"),
:title => slug,
:i_day => date.strftime("%d").to_i.to_s,
:i_month => date.strftime("%m").to_i.to_s,
:i_day => date.strftime("%-d"),
:i_month => date.strftime("%-m"),
:categories => (categories || []).map { |c| c.to_s }.join('/'),
:short_month => date.strftime("%b"),
:short_year => date.strftime("%y"),