Class | Jekyll::Pager |
In: |
lib/jekyll/generators/pagination.rb
|
Parent: | Object |
next_page | [R] | |
page | [R] | |
per_page | [R] | |
posts | [R] | |
previous_page | [R] | |
total_pages | [R] | |
total_posts | [R] |
Calculate the number of pages.
all_posts - The Array of all Posts. per_page - The Integer of entries per page.
Returns the Integer number of pages.
Determine if pagination is enabled for a given file.
config - The configuration Hash. file - The String filename of the file.
Returns true if pagination is enabled, false otherwise.