Go to file
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
benchmark Add benchmark for end_with? vs regexp 2015-02-25 11:57:49 -08:00
bin bin/jekyll: with no args, exit with exit code 1 2015-03-25 19:03:14 -07:00
features Use rspec-mock instead of rr 2015-03-06 20:13:07 -05:00
lib Use `Jekyll::Post`s for both LSI indexing and lookup. 2015-03-29 23:43:55 -07:00
script Create 'tmp' dir for test_tags if it doesn't exist 2015-03-22 22:52:16 -07:00
site Fixes #3480 Show how to install and use html-proofer without Gemfile 2015-03-27 09:09:06 -04:00
test Use `Jekyll::Post`s for both LSI indexing and lookup. 2015-03-29 23:43:55 -07:00
.gitignore Merge branch 'majioa-devel' 2015-01-17 15:01:20 -08:00
.travis.yml Fix bad tabbing. 2015-01-14 05:45:49 -06:00
CONTRIBUTING.markdown Point to the right path for the docs folder. 2015-03-20 10:14:59 -05:00
Gemfile Remove activesupport. 2015-03-23 20:03:21 -07:00
History.markdown Update history.md to reflect the merger of #3614. 2015-03-28 19:27:26 -05:00
LICENSE Update LICENSE to 2015. 2015-02-17 22:17:25 +01:00
README.markdown Switch to shields.io for the README badges. 2015-01-04 13:13:16 +02:00
Rakefile Release jekyllrb.com as a locally-compiled site. 2015-02-07 22:09:43 -08:00
circle.yml Don't duplicate work. 2015-02-07 23:52:00 -08:00
jekyll.gemspec Move previous runtime dependencies to development dependencies. 2015-01-31 13:53:17 -08:00

README.markdown

Jekyll

Gem Version Build Status Code Climate Dependency Status Security

By Tom Preston-Werner, Nick Quaranto, Parker Moore, and many awesome contributors!

Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind GitHub Pages, which you can use to host sites right from your GitHub repositories.

Philosophy

Jekyll does what you tell it to do — no more, no less. It doesn't try to outsmart users by making bold assumptions, nor does it burden them with needless complexity and configuration. Put simply, Jekyll gets out of your way and allows you to concentrate on what truly matters: your content.

Getting Started

Diving In

License

See LICENSE.