Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge commit 'c31d67'

  • Loading branch information...
commit 3041cf6ad42907809a3509ce0a3b76db0aa148e4 2 parents 436ada3 + c31d676
@mojombo mojombo authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.