From 39d33b48b0c7dc6a5eab5289b3cf0e9252db2387 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 7 May 2013 06:58:54 -0500 Subject: [PATCH] Fix the index build with LSI --- lib/jekyll/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 388c86c3..571d854d 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -261,7 +261,7 @@ module Jekyll puts "Starting the classifier..." lsi = Classifier::LSI.new(:auto_rebuild => false) $stdout.print(" Populating LSI... "); $stdout.flush - posts.each { |x| $stdout.print("."); $stdout.flush; lsi.add_item(x) } + self.site.posts.each { |x| $stdout.print("."); $stdout.flush; lsi.add_item(x) } $stdout.print("\n Rebuilding LSI index... ") lsi.build_index puts ""