blakeembrey / metalsmith-pagination

A Metalsmith plugin for paginating arrays and collections
MIT License
34 stars 10 forks source link

Does not allow omission of template and layout options #39

Closed ismay closed 5 years ago

ismay commented 5 years ago

I've just implemented pagination with this plugin (see here: https://github.com/ismay/ismaywolff.nl/commit/df879d291f27f198fa2bb757a79fe5c587c8b779), and it works really well. Only one thing that it does is a minor inconvenience: it requires me to pass a layout or template option, when in fact I'm using the pageContents option with in-place (so I don't need layouts or templates).

I've now set layout to a nonsense string ("none") to silence the error (see here: https://github.com/ismay/ismaywolff.nl/blob/master/metalsmith.js#L82), but it would be nice if it was allowed to omit both layout and template when pageContents has been set.