Merge branch 'date-format'
This commit is contained in:
commit
0b089c5049
|
@ -1,8 +1,8 @@
|
|||
module Jekyll
|
||||
|
||||
module Filters
|
||||
def date_to_string(date)
|
||||
date.strftime("%d %b %Y")
|
||||
def date_to_string(date, format="%d %b %Y")
|
||||
date.strftime(format)
|
||||
end
|
||||
|
||||
def date_to_long_string(date)
|
||||
|
|
Loading…
Reference in New Issue