Skip to content

Commit

Permalink
Removed the transform from initialize to convertable right after the …
Browse files Browse the repository at this point in the history
…liquid template has been parsed
  • Loading branch information
Chris Van Pelt committed Nov 23, 2008
1 parent b9cdfc8 commit bcde0bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/jekyll/post.rb
Expand Up @@ -32,7 +32,8 @@ def initialize(base, 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
Expand Down Expand Up @@ -82,8 +83,10 @@ def id
# 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

Expand Down

0 comments on commit bcde0bd

Please sign in to comment.