Okay, I didn't really need to create a new filter

This commit is contained in:
Josh Dady 2008-12-25 09:31:33 -05:00
parent 5b886e8704
commit 863b0dd990
1 changed files with 2 additions and 6 deletions

View File

@ -1,18 +1,14 @@
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)
date.strftime("%d %B %Y")
end
def strftime(date, format = '%x')
date.strftime(format)
end
def date_to_xmlschema(date)
date.xmlschema
end