lib/octopress/page.rb in octopress-3.0.6 vs lib/octopress/page.rb in octopress-3.0.7

- old
+ new

@@ -162,13 +162,14 @@ vars['slug'] = title_slug # Allow templates to use date fragments # date = Time.parse(vars['date'] || Time.now.iso8601) + vars['date'] = date.iso8601 vars['year'] = date.year vars['month'] = date.strftime('%m') vars['day'] = date.strftime('%d') - vars['ymd'] = date.strftime('%D') + vars['ymd'] = date.strftime('%Y-%m-%d') # If possible only parse the YAML front matter. # If YAML front-matter dashes aren't present parse the whole # template and add dashes. #