|
@ -36,7 +36,6 @@ module Octopress |
|
|
if format.nil? || format.empty? || format == "ordinal" |
|
|
if format.nil? || format.empty? || format == "ordinal" |
|
|
date_formatted = ordinalize(date) |
|
|
date_formatted = ordinalize(date) |
|
|
else |
|
|
else |
|
|
format.gsub!(/%o/, '%%o') |
|
|
|
|
|
date_formatted = date.strftime(format) |
|
|
date_formatted = date.strftime(format) |
|
|
date_formatted.gsub!(/%o/, ordinal(date.strftime('%e').to_i)) |
|
|
date_formatted.gsub!(/%o/, ordinal(date.strftime('%e').to_i)) |
|
|
end |
|
|
end |
|
|