5
0
Fork 0
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:
f 2023-10-20 12:22:18 -03:00
parent 833022c9c4
commit f28ba40953
No known key found for this signature in database

View file

@ -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