mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 10:26:22 +00:00
fix: indexar cambios sin leer todo el sitio
This commit is contained in:
parent
e1d80e4853
commit
e34392e77c
1 changed files with 3 additions and 2 deletions
|
@ -104,9 +104,10 @@ class Site
|
|||
indexable_posts.select do |delta|
|
||||
MODIFIED_STATUSES.include? delta.status
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue