From: simon Date: Tue, 30 Mar 2004 19:49:42 +0000 (+0000) Subject: The navigation links now contain a link to the index page. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/25acf71d995f135e72a64316730e625a3f7c1e6c The navigation links now contain a link to the index page. git-svn-id: svn://svn.tartarus.org/sgt/halibut@4002 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/bk_xhtml.c b/bk_xhtml.c index 745cce5..4cbe1d6 100644 --- a/bk_xhtml.c +++ b/bk_xhtml.c @@ -730,6 +730,11 @@ static void xhtml_donavlinks(FILE *fp, xhtmlfile *file) fprintf(fp, "Previous | ", xhtml_last_file->filename); } fprintf(fp, "Contents | "); + if (file == NULL) { + fprintf(fp, "Index | "); + } else { + fprintf(fp, "Index | ", xhtml_index_filename); + } if (file != NULL) { /* otherwise we're doing nav links for the index */ if (xhtml_next_file==NULL) xhtml_next_file = file->child;