From f7628505b099189eb0cf47cfcac745d0dd55796f Mon Sep 17 00:00:00 2001 From: f Date: Fri, 27 Oct 2023 11:32:47 -0300 Subject: [PATCH] fix: no cambiar la fecha si vamos a leerla luego (cherry picked from commit ed786a7307533d8ec6184f00bf951c58a1bf09c4) --- app/models/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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