]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Add GIT favicon, assuming image/png type
authorJakub Narebski <redacted>
Mon, 4 Sep 2006 18:32:13 +0000 (20:32 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-favicon.png [new file with mode: 0644]
gitweb.perl

diff --git a/git-favicon.png b/git-favicon.png
new file mode 100644 (file)
index 0000000..f2029cb
Binary files /dev/null and b/git-favicon.png differ
index b603d5970d97ef875b2c201c9bd5f34f733bcb00b32dbb28ade08672392e8fda..8e98e3b93ac3ec6cf2c702b44d68f3b634230fc6d3f04adc4d3255c1791bfbc8 100755 (executable)
@@ -48,6 +48,8 @@ our $home_text = "++GITWEB_HOMETEXT++";
 our $stylesheet = "++GITWEB_CSS++";
 # URI of GIT logo
 our $logo = "++GITWEB_LOGO++";
+# URI of GIT favicon, assumed to be image/png type
+our $favicon = "++GITWEB_FAVICON++";
 
 # source of projects list
 our $projects_list = "++GITWEB_LIST++";
@@ -1222,6 +1224,9 @@ EOF
                       'href="%s" type="application/rss+xml"/>'."\n",
                       esc_param($project), href(action=>"rss"));
        }
+       if (defined $favicon) {
+               print qq(<link rel="shortcut icon" href="$favicon" type="image/png"/>\n);
+       }
 
        print "</head>\n" .
              "<body>\n" .
This page took 0.255332 seconds and 4 git commands to generate.