willkg / douglas

DEAD PROJECT: File based static rendering blog system
Other
2 stars 3 forks source link

fix pagination plugin #7

Closed willkg closed 10 years ago

willkg commented 10 years ago

The pagination plugin should have a function that takes some templates and generates the paging links.

It should always be 1 based--no more 0-based page navigation.

The PageDisplay should have better named variables. My vote is crib from the Paginator class in Django.

willkg commented 10 years ago

I nixed the count-from config variable. I also cleaned up the code. I didn't change the pagination plugin to use a function, yet. Now that I've cleaned up the code, I'm not sure that's possible.

The outstanding thing here is to change PageDisplay so it works similarly to the Django Paginator class.