Releases: blakeembrey/metalsmith-pagination
Releases · blakeembrey/metalsmith-pagination
Support empty pages
Allow `pageContents` by itself
Fixed
- Allow
pageContents
to be set on its own
Get Pages
Added
- Expose a
getPages
utility (from discussion here: #9 (comment)) which retrievesx
number of pages centered
Index, First Page and Last Page References
Added
pagination.index
is a reference to the current page index (num - 1
)pagination.first
is a reference to the first page (pagination.pages[0]
)pagination.last
is 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
contents
inline for generated pages - groupBy Provide a function or function string to group files into pages