mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 09:46:23 +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|
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue