5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-02-17 00:51:49 +00:00

fix: usar Post.build

(cherry picked from commit 3cf93b15b6)
This commit is contained in:
f 2023-10-27 11:33:24 -03:00
parent f7628505b0
commit 3b3b79a22d
No known key found for this signature in database

View file

@ -20,7 +20,7 @@ class Site
jekyll.documents.each do |doc|
doc.read!
Post.new(document: doc, site: self, layout: doc['layout'].to_sym).index!
Post.build(document: doc, site: self, layout: doc['layout'].to_sym).index!
end
update(last_indexed_commit: repository.head_commit.oid)