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

fix: indexar cambios sin leer todo el sitio

This commit is contained in:
f 2023-10-26 18:09:20 -03:00
parent e1d80e4853
commit e34392e77c
No known key found for this signature in database

View file

@ -104,9 +104,10 @@ class Site
indexable_posts.select do |delta| indexable_posts.select do |delta|
MODIFIED_STATUSES.include? delta.status MODIFIED_STATUSES.include? delta.status
end.each do |delta| end.each do |delta|
locale, path = locale_and_path_from(delta.new_file[:path]) locale, _ = locale_and_path_from(delta.new_file[:path])
full_path = File.join(self.path, delta.new_file[:path])
posts(lang: locale).find(path).index! Post.build(path: full_path, site: self, layout: Post.find_layout(full_path), locale: locale).index!
end end
end end