octopress / paginate

A simple paginator for Jekyll sites.
MIT License
105 stars 37 forks source link

added sort and sort_direction parameters #17

Open fraank opened 9 years ago

fraank commented 9 years ago

Within the config of pagination you can set sort by "name", which represents the basename of the document and any other attributes of the document (for example "title"). You can also set "sort_direction" with "DESC" if you want to reverse the results.

Default params, which can be overwritten in the config of each pagination (works also for collections): 'sort' => 'name', 'sort_direction' => 'ASC',