mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 23:06:22 +00:00
fix: leer el sitio completo durante la indexación
This commit is contained in:
parent
833022c9c4
commit
f28ba40953
1 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,14 @@ class Site
|
|||
|
||||
def index_posts!
|
||||
Site.transaction do
|
||||
docs.each(&:index!)
|
||||
jekyll.read
|
||||
jekyll.documents.each do |doc|
|
||||
doc.read!
|
||||
|
||||
Post.new(document: doc, site: self, layout: layouts[doc['layout'].to_sym).index!
|
||||
end
|
||||
|
||||
update(last_indexed_commit: repository.head_commit.oid)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue