diff --git a/pageranges.py b/pageranges.py index af84648..237c267 100644 --- a/pageranges.py +++ b/pageranges.py @@ -752,7 +752,9 @@ def prevnexttitle(context, idx): title = wikirend.nolinkstitlerend(nc) if not title: title = pg.path[len(rpath)+1:] - return '%s' % (context.nurl(pg), title) + direction = {0: "prev", 1: "next"}[idx] + return '%s' % (direction, + context.nurl(pg), title) def prevtitle(context): """Create a link to the previous page (if one exists) for the current page if the current page is in a blog directory but is