diff --git a/app/models/post.rb b/app/models/post.rb index a595b024..c1b3d53b 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