Do not add link to index page if --nocontents has been specified.

On doc pages do not link to index page if --nocontents argument
has been specified.