From: Armaan Bhojwani Date: Tue, 6 Apr 2021 15:55:11 +0000 (-0400) Subject: Implement lighthouse suggestions X-Git-Url: https://git.armaanb.net/?p=stagit.git;a=commitdiff_plain;h=516f65ffea797d22346a1acf596e69673e1c9a1d Implement lighthouse suggestions --- diff --git a/src/stagit-index.c b/src/stagit-index.c index 545fda3..ecdfbc1 100644 --- a/src/stagit-index.c +++ b/src/stagit-index.c @@ -67,8 +67,9 @@ writeheader(char *path) { FILE *fp = fopen(path, "w"); fputs("\n" - "\n\n" + "\n\n" "\n" + "\n" "", fp); xmlencode(fp, description, strlen(description)); fprintf(fp, "\n\n", relpath); diff --git a/src/stagit.c b/src/stagit.c index b5580b8..247fe70 100644 --- a/src/stagit.c +++ b/src/stagit.c @@ -347,7 +347,7 @@ void writeheader(FILE *fp, const char *title) { fputs("\n" - "\n\n" + "\n\n" "\n" "\n" "", fp); @@ -364,7 +364,7 @@ writeheader(FILE *fp, const char *title) fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%ssyntax.css\" />\n", relpath); fputs("</head>\n<body>\n<table><tr><td>", fp); - fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", + fprintf(fp, "<a href=\"../%s\"><img alt=\"Go home\" src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>", relpath, relpath); fputs("</td><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname));