Added a strftime filter
This commit is contained in:
parent
8477cb5946
commit
5b886e8704
|
@ -9,6 +9,10 @@ module Jekyll
|
||||||
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