@property
    def pages(self):
        if self.per_page == 0:
            pages = 0
        else:
            pages = int(ceil(self.total / float(self.per_page)))
        return pages
The total number of pages
dataset/ETHPy150Open lektor/lektor-archive/lektor/pagination.py/Pagination.pages