Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.411 kB
require 'active_support/core_ext/module/aliasing'
class Jekyll::Post
def initialize_with_updated(site, source, dir, name)
initialize_without_updated(site, source, dir, name)
self.data['updated'] = if self.data.has_key? 'updated'
Time.parse self.data['updated'].to_s
end
self.data['last_modified'] = self.data['updated'] || self.date
end
alias_method_chain :initialize, :updated
end
Jump to Line
Something went wrong with that request. Please try again.