Okay, I didn't really need to create a new filter
This commit is contained in:
parent
5b886e8704
commit
863b0dd990
|
@ -1,18 +1,14 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
|
|
||||||
module Filters
|
module Filters
|
||||||
def date_to_string(date)
|
def date_to_string(date, format="%d %b %Y")
|
||||||
date.strftime("%d %b %Y")
|
date.strftime(format)
|
||||||
end
|
end
|
||||||
|
|
||||||
def date_to_long_string(date)
|
def date_to_long_string(date)
|
||||||
date.strftime("%d %B %Y")
|
date.strftime("%d %B %Y")
|
||||||
end
|
end
|
||||||
|
|
||||||
def strftime(date, format = '%x')
|
|
||||||
date.strftime(format)
|
|
||||||
end
|
|
||||||
|
|
||||||
def date_to_xmlschema(date)
|
def date_to_xmlschema(date)
|
||||||
date.xmlschema
|
date.xmlschema
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue