Class | Jekyll::Pagination |
In: |
lib/jekyll/generators/pagination.rb
|
Parent: | Generator |
Paginates the blog‘s posts. Renders the index.html file into paginated directories, ie: page2/index.html, page3/index.html, etc and adds more site-wide data.
+page+ is the index.html Page that requires pagination
{"paginator" => { "page" => <Number>,
"per_page" => <Number>, "posts" => [<Post>], "total_posts" => <Number>, "total_pages" => <Number>, "previous_page" => <Number>, "next_page" => <Number> }}