Merge commit 'c31d67'
This commit is contained in:
commit
3041cf6ad4
|
@ -96,6 +96,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns [<Post>]
|
# Returns [<Post>]
|
||||||
def related_posts(posts)
|
def related_posts(posts)
|
||||||
|
return [] unless posts.size > 1
|
||||||
self.class.lsi ||= begin
|
self.class.lsi ||= begin
|
||||||
puts "Running the classifier... this could take a while."
|
puts "Running the classifier... this could take a while."
|
||||||
lsi = Classifier::LSI.new
|
lsi = Classifier::LSI.new
|
||||||
|
@ -145,4 +146,4 @@ module Jekyll
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue