Skip to content
Browse files

Merge commit 'c31d67'

  • Loading branch information...
2 parents 436ada3 + c31d676 commit 3041cf6ad42907809a3509ce0a3b76db0aa148e4 @mojombo mojombo committed Dec 10, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jekyll/post.rb
View
3 lib/jekyll/post.rb
@@ -96,6 +96,7 @@ def id
#
# Returns [<Post>]
def related_posts(posts)
+ return [] unless posts.size > 1
self.class.lsi ||= begin
puts "Running the classifier... this could take a while."
lsi = Classifier::LSI.new
@@ -145,4 +146,4 @@ def to_liquid
end
end
-end
+end

0 comments on commit 3041cf6

Please sign in to comment.
Something went wrong with that request. Please try again.