5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 20:06:22 +00:00

fix: no cambiar la fecha si vamos a leerla luego

This commit is contained in:
f 2023-10-27 11:32:47 -03:00
parent 74ae4ef4ab
commit ed786a7307
No known key found for this signature in database

View file

@ -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