Removed the transform from initialize to convertable right after the liquid template has been parsed

This commit is contained in:
Chris Van Pelt 2008-11-23 14:54:49 -08:00
parent b9cdfc8824
commit bcde0bd608
1 changed files with 5 additions and 2 deletions

View File

@ -32,7 +32,8 @@ module Jekyll
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
@ -82,8 +83,10 @@ module Jekyll
# 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