From a78001d2d090dafc3b8b3ee3b7d263ad4a32da95 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 30 Mar 2004 19:49:42 +0000 Subject: The navigation links now contain a link to the index page. [originally from svn r4002] --- bk_xhtml.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.1