$def with (logged_books=None, mode='now') $ page = int(input(page=1).page)
$ pages = {'now': _('Now'), 'daily': _('Today'), 'weekly': _('This Week'), 'monthly': _('This Month'), 'yearly': _('This Year'), 'forever': _('All Time')}

$_('Trending Books'): $(pages[mode])

$_("See what readers from the community are adding to their bookshelves")

$if mode == 'forever':

$_("Earliest trending data is from October 2017")

$:macros.Pager(page, 200, results_per_page=20)