changed date format on wordpress converter (zeropadding)
This commit is contained in:
parent
36183cbcfb
commit
a3c18fb095
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue