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

fix: usar Post.build

This commit is contained in:
f 2023-10-27 11:33:24 -03:00
parent ed786a7307
commit 3cf93b15b6
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)