Releases: blakeembrey/metalsmith-pagination
Releases · blakeembrey/metalsmith-pagination
Support empty pages
Allow `pageContents` by itself
Fixed
- Allow
pageContentsto be set on its own
Get Pages
Added
- Expose a
getPagesutility (from discussion here: #9 (comment)) which retrievesxnumber of pages centered
Index, First Page and Last Page References
Added
pagination.indexis a reference to the current page index (num - 1)pagination.firstis a reference to the first page (pagination.pages[0])pagination.lastis a reference to the last page (pagination.pages[pagination.pages.length - 1])
New Pagination Options
Changed
- Improve documentation on options
Added
- noPageOne Disable rendering page one when first is enabled
- pageContents Specify the
contentsinline for generated pages - groupBy Provide a function or function string to group files into pages