From ed786a7307533d8ec6184f00bf951c58a1bf09c4 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 --- 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 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