| Class | Jekyll::Paginate::Pagination |
| In: |
lib/jekyll-paginate/pagination.rb
|
| Parent: | Generator |
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
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> }}