fixed
This commit is contained in:
parent
ec9f656358
commit
88cc0d9240
1 changed files with 3 additions and 3 deletions
6
img.c
6
img.c
|
@ -296,7 +296,7 @@ char *GetDate(time_t time) {
|
|||
}
|
||||
|
||||
struct DB_STR *build_html_page(FILE *fp, const char *file, const struct UNIQ_TAGS ut, struct DB_STR *db, const size_t page, const size_t pages) {
|
||||
fprintf(fp, "<html>\n<head>\n<link rel='stylesheet' href='%s'>\n<title>%s</title>\n<meta charset='UTF-8'>\n</head>\n<body>\n<a href='index.html'> <center> <img id='logo' src='%s'> </center> </a>\n<h1 id='desc'>%s | <a href='%s'>RSS</a><br>%s/p%zu</h1>\n", CSS, TITLE, LOGO, DESC, XML_FILE, file, page);
|
||||
fprintf(fp, "<html>\n<head>\n<link rel='stylesheet' href='%s'>\n<title>%s</title>\n<meta charset='UTF-8'>\n</head>\n<body>\n<center><a href='index.html'><img id='logo' src='%s'></a>\n<h1 id='desc'>%s | <a href='%s'>RSS</a><br>%s/p%zu</h1></center>\n", CSS, TITLE, LOGO, DESC, XML_FILE, file, page);
|
||||
|
||||
/* Tags */
|
||||
fputs("<center><div class='alltags'>\n<a href='index.html'>all</a>", fp);
|
||||
|
@ -352,10 +352,10 @@ struct DB_STR *build_html_page(FILE *fp, const char *file, const struct UNIQ_TAG
|
|||
snprintf(new_path, sizeof(new_path), "%s-%zu.html", file, i);
|
||||
|
||||
if (i == page)
|
||||
fprintf(fp, "<a id='curr' href='%s'>%zu</a>", new_path, i);
|
||||
fprintf(fp, "<a id='curr' href='%s'>%zu</a> ", new_path, i);
|
||||
|
||||
else
|
||||
fprintf(fp, "<a href='%s'> %zu </a>", new_path, i);
|
||||
fprintf(fp, "<a href='%s'>%zu</a> ", new_path, i);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue