mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 07:36:22 +00:00
fix: no cambiar la fecha si vamos a leerla luego
(cherry picked from commit ed786a7307
)
This commit is contained in:
parent
5078d39d58
commit
f7628505b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue