5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 07:16:21 +00:00

fix: no cambiar la fecha si vamos a leerla luego

(cherry picked from commit ed786a7307)
This commit is contained in:
f 2023-10-27 11:32:47 -03:00
parent 5078d39d58
commit f7628505b0
No known key found for this signature in database

View file

@ -53,7 +53,7 @@ class Post
collection = site.collections[args[:locale].to_s] collection = site.collections[args[:locale].to_s]
Jekyll::Document.new(args[:path], site: site.jekyll, collection: collection).tap do |doc| 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
end end