Class Jekyll::Paginate::Pagination
In: lib/jekyll-paginate/pagination.rb
Parent: Generator

Methods

Public Class methods

Static: Fetch the URL of the template page. Used to determine the

        path to the first pager in the series.

site - the Jekyll::Site object

Returns the url of the template page

Public Instance methods

Generate paginated pages if necessary.

site - The Site.

Returns nothing.

Paginates the blog‘s posts. Renders the index.html file into paginated directories, e.g.: page2/index.html, page3/index.html, etc and adds more site-wide data.

site - The Site. page - 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> }}

Public: Find the Jekyll::Page which will act as the pager template

site - the Jekyll::Site object

Returns the Jekyll::Page which will act as the pager template

[Validate]