Skip to content

Releases: blakeembrey/metalsmith-pagination

Support empty pages

14 Nov 05:32
Compare
Choose a tag to compare

Added

  • Allow empty pages to be generated for a collection 3c94337

Fixed

  • Encode pageContents into a buffer cbc6d6e

Allow `pageContents` by itself

22 Nov 05:35
Compare
Choose a tag to compare

Fixed

  • Allow pageContents to be set on its own

Get Pages

04 Dec 16:19
Compare
Choose a tag to compare

Added

  • Expose a getPages utility (from discussion here: #9 (comment)) which retrieves x number of pages centered

Index, First Page and Last Page References

22 Nov 17:15
Compare
Choose a tag to compare

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

24 Oct 17:48
Compare
Choose a tag to compare

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