changed date format on wordpress converter (zeropadding)

This commit is contained in:
Tim Dysinger 2009-02-08 18:37:59 -10:00
parent 36183cbcfb
commit a3c18fb095
1 changed files with 9 additions and 8 deletions

View File

@ -29,7 +29,8 @@ module Jekyll
date = post[:post_date]
content = post[:post_content]
name = [date.year, date.month, date.day, slug].join('-') + ".markdown"
name = "%02d-%02d-%02d-%s.markdown" % [date.year, date.month, date.day,
slug]
# Get the relevant fields as a hash, delete empty fields and convert
# to YAML for the header