mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 04:36:21 +00:00
fix: no cambiar la fecha si vamos a leerla luego
This commit is contained in:
parent
74ae4ef4ab
commit
ed786a7307
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue