lib/jekyll/post.rb in jekyll-0.1.2 vs lib/jekyll/post.rb in jekyll-0.1.3
- old
+ new
@@ -30,11 +30,12 @@
@base = base
@name = name
self.process(name)
self.read_yaml(base, name)
- self.transform
+ #Removed to avoid munging of liquid tags, replaced in convertible.rb#48
+ #self.transform
end
# Spaceship is based on Post#date
#
# Returns -1, 0, 1
@@ -80,11 +81,13 @@
# Calculate related posts.
#
# Returns [<Post>]
def related_posts(posts)
self.class.lsi ||= begin
+ puts "Running the classifier... this could take a while."
lsi = Classifier::LSI.new
- posts.each { |x| lsi.add_item(x) }
+ posts.each { |x| $stdout.print(".");$stdout.flush;lsi.add_item(x) }
+ puts ""
lsi
end
related = self.class.lsi.find_related(self.content, 11)
related - [self]
\ No newline at end of file