mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:46:22 +00:00
fix: usar Post.build
This commit is contained in:
parent
ed786a7307
commit
3cf93b15b6
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Site
|
||||||
jekyll.documents.each do |doc|
|
jekyll.documents.each do |doc|
|
||||||
doc.read!
|
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
|
end
|
||||||
|
|
||||||
update(last_indexed_commit: repository.head_commit.oid)
|
update(last_indexed_commit: repository.head_commit.oid)
|
||||||
|
|
Loading…
Reference in a new issue