summaryrefslogtreecommitdiff
path: root/bk_xhtml.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-03-30 19:49:42 +0000
committerSimon Tatham <anakin@pobox.com>2004-03-30 19:49:42 +0000
commita78001d2d090dafc3b8b3ee3b7d263ad4a32da95 (patch)
treefe5943f61cfb63102088b0ad50f068c2ab9dddc6 /bk_xhtml.c
parent6afc62bad8fc92160adb5301abfb18295001947f (diff)
downloadhalibut-a78001d2d090dafc3b8b3ee3b7d263ad4a32da95.zip
halibut-a78001d2d090dafc3b8b3ee3b7d263ad4a32da95.tar.gz
halibut-a78001d2d090dafc3b8b3ee3b7d263ad4a32da95.tar.bz2
halibut-a78001d2d090dafc3b8b3ee3b7d263ad4a32da95.tar.xz
The navigation links now contain a link to the index page.
[originally from svn r4002]
Diffstat (limited to 'bk_xhtml.c')
-rw-r--r--bk_xhtml.c5
1 files changed, 5 insertions, 0 deletions
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, "<a href='%s'>Previous</a> | ", xhtml_last_file->filename);
}
fprintf(fp, "<a href='Contents.html'>Contents</a> | ");
+ if (file == NULL) {
+ fprintf(fp, "Index | ");
+ } else {
+ fprintf(fp, "<a href='%s'>Index</a> | ", 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;