diff --git a/app/models/post.rb b/app/models/post.rb index 26611a41..651c2624 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -53,7 +53,7 @@ class Post collection = site.collections[args[:locale].to_s] Jekyll::Document.new(args[:path], site: site.jekyll, collection: collection).tap do |doc| - doc.data['date'] ||= Date.today.to_time + doc.data['date'] = Date.today.to_time if args[:path].blank? end end