summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/html.c b/html.c
index 444a53d..4edf720 100644
--- a/html.c
+++ b/html.c
@@ -427,7 +427,9 @@ static xs_html *html_base_head(void)
427 xs_html_attr("name", "generator"), 427 xs_html_attr("name", "generator"),
428 xs_html_attr("content", USER_AGENT))); 428 xs_html_attr("content", USER_AGENT)));
429 429
430 /* add server CSS */ 430 /* add server CSS and favicon */
431 xs *f;
432 f = xs_fmt("%s/favicon.ico", srv_baseurl);
431 xs_list *p = xs_dict_get(srv_config, "cssurls"); 433 xs_list *p = xs_dict_get(srv_config, "cssurls");
432 char *v; 434 char *v;
433 while (xs_list_iter(&p, &v)) { 435 while (xs_list_iter(&p, &v)) {
@@ -436,6 +438,11 @@ static xs_html *html_base_head(void)
436 xs_html_attr("rel", "stylesheet"), 438 xs_html_attr("rel", "stylesheet"),
437 xs_html_attr("type", "text/css"), 439 xs_html_attr("type", "text/css"),
438 xs_html_attr("href", v))); 440 xs_html_attr("href", v)));
441 xs_html_add(head,
442 xs_html_sctag("link",
443 xs_html_attr("rel", "icon"),
444 xs_html_attr("type", "image/x-icon"),
445 xs_html_attr("href", f)));
439 } 446 }
440 447
441 return head; 448 return head;