It's because the index pages are numbered in decreasing order as of 5.5.
That is:

index.html -> index-9.html -> index-8.html -> .... -> index-1.html

With index containing the newest post and index-1 containing the oldest.


On Mon, Jul 29, 2013 at 9:20 AM, Damián Avila <notifications@github.com>wrote:

> In nikola/plugins/task_indexes.py:
>
> > @@ -84,7 +84,7 @@ def gen_tasks(self):
> >                  context['index_teasers'] = kw['index_teasers']
> >                  if i == 0:  # index.html page
> >                      context["prevlink"] = None
> > -                    if num_pages > 2:
> > +                    if num_pages > 1:
> >                          context["nextlink"] = "index-{0}.html".format(num_pages - 1)
>
> Maybe I am missing something, but if i == 0 the "nextlink" has to be
> "index-1.html", why is the index dependent of the number of pages?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ralsina/nikola/pull/535/files#r5449091>
> .
>