]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add a favicon option to cgitrc
[ps-cgit] / ui-shared.c
index 8a00099fdf10bc9871742c6eb561ab450c83a2b6..6f83d2a772208c794eee360da531ae73d9913acb 100644 (file)
@@ -437,6 +437,11 @@ void cgit_print_docstart(struct cgit_context *ctx)
        html("<link rel='stylesheet' type='text/css' href='");
        html_attr(ctx->cfg.css);
        html("'/>\n");
+       if (ctx->cfg.favicon) {
+               html("<link rel='shortcut icon' href='");
+               html_attr(ctx->cfg.favicon);
+               html("'/>\n");
+       }
        html("</head>\n");
        html("<body>\n");
 }