diff options
author | Paul Wilde <psw@wildefedi01.wildenet.wilde.cloud> | 2024-01-28 18:49:16 +0000 |
---|---|---|
committer | Paul Wilde <psw@wildefedi01.wildenet.wilde.cloud> | 2024-01-28 18:49:16 +0000 |
commit | d86b96b5a3efec0d0b739a377db72dc9e257dd59 (patch) | |
tree | 369aecfaaaa7cc9d218913bab1ad42020ce7d50c /html.c | |
parent | 2410c73d9a4e4bdcecab39c5073565b3115b96c1 (diff) | |
parent | d839654ccbea5c9d9f9b01d9669a48bf6e42b56f (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -427,7 +427,9 @@ static xs_html *html_base_head(void) xs_html_attr("name", "generator"), xs_html_attr("content", USER_AGENT))); - /* add server CSS */ + /* add server CSS and favicon */ + xs *f; + f = xs_fmt("%s/favicon.ico", srv_baseurl); xs_list *p = xs_dict_get(srv_config, "cssurls"); char *v; while (xs_list_iter(&p, &v)) { @@ -438,6 +440,12 @@ static xs_html *html_base_head(void) xs_html_attr("href", v))); } + xs_html_add(head, + xs_html_sctag("link", + xs_html_attr("rel", "icon"), + xs_html_attr("type", "image/x-icon"), + xs_html_attr("href", f))); + return head; } |