#include <expat.h>
-#define CLOVER_VERSION "1.0C"
+#define CLOVER_VERSION "1.0D"
char* concat_str(const char* str1, const char* str2) {
char* r = malloc(strlen(str1) + strlen(str2) + 1);
XML_ParserFree(sparser);
if(!page_do_not_index2){
fprintf(f, "<dt><a href=\"%s/%s\">", http_path, http);
- if(page_icon2 != NULL) fprintf(f, "<img src=\"%s/static/%s\">", http_path, page_icon2);
+ if(page_icon2 != NULL) fprintf(f, "<img src=\"%s/static/%s\" alt=\"%s\">", http_path, page_icon2, page_title2);
if(page_icon2 != NULL) fprintf(f, "</a> ");
if(page_title2 != NULL) fprintf(f, "<b>%s </b>", page_title2);
if(page_icon2 == NULL) fprintf(f, "</a>");
fprintf(f, " <link rel=\"icon\" href=\"%s/static/%s\">\n", http_path, icon);
fprintf(f, " </head>\n");
fprintf(f, " <body>\n");
- fprintf(f, " <a href=\"%s\"><img src=\"%s/static/%s\"></a>\n", http_path, http_path, icon);
+ fprintf(f, " <a href=\"%s\"><img src=\"%s/static/%s\" alt=\"website icon\"></a>\n", http_path, http_path, icon);
if(page_icon != NULL){
char* from_path = concat3_str(static_dir, "/", page_icon);
char* to_path = concat3_str(output_dir, "/static/", page_icon);
fclose(to);
free(from_path);
free(to_path);
- fprintf(f, " <img src=\"%s/static/%s\">\n", http_path, page_icon);
+ fprintf(f, " <img src=\"%s/static/%s\" alt=\"page icon\">\n", http_path, page_icon);
}
if(page_title != NULL) {
fprintf(f, " <h1>%s - %s</h1>\n", title, page_title);