jekyll/lib
Justin Weiss fa435fae94 Use `Jekyll::Post`s for both LSI indexing and lookup.
When looking for related posts, Jekyll was indexing `Jekyll::Post`
objects, but finding related posts based on `Jekyll::Post#content`. This
caused two problems:

1. Ruby 2.2 will warn on == if <=> throws an exception (and future Ruby
versions will surface that exception). Because `String`s can't be
compared with `Jekyll::Post`s, this warning was appearing all the time
while searching for related posts.

2. LSI won't return a post itself when searching for related posts. But
LSI could never tell that we were searching on a post, since Jekyll
passed post content, not a post object. With this fix, we can remove the
`- [post]` from `Jekyll::RelatedPosts#find_related`.

This is a more accurate fix for #3484.
2015-03-29 23:43:55 -07:00
..
jekyll Use `Jekyll::Post`s for both LSI indexing and lookup. 2015-03-29 23:43:55 -07:00
site_template Separated some more readers from the main reader.rb file. 2015-03-06 17:20:25 +01:00
jekyll.rb Made corrections as suggested by @mattr-. 2015-03-20 12:41:19 +01:00