Browse Source

gitweb: Add GIT favicon, assuming image/png type

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Jakub Narebski 19 years ago committed by Junio C Hamano
parent
commit
0b5deba132
  1. 2
      Makefile
  2. BIN
      gitweb/git-favicon.png
  3. 5
      gitweb/gitweb.perl

2
Makefile

@ -131,6 +131,7 @@ GITWEB_LIST = @@ -131,6 +131,7 @@ GITWEB_LIST =
GITWEB_HOMETEXT = indextext.html
GITWEB_CSS = gitweb.css
GITWEB_LOGO = git-logo.png
GITWEB_FAVICON = git-favicon.png

export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR

@ -635,6 +636,7 @@ gitweb/gitweb.cgi: gitweb/gitweb.perl @@ -635,6 +636,7 @@ gitweb/gitweb.cgi: gitweb/gitweb.perl
-e 's|++GITWEB_HOMETEXT++|$(GITWEB_HOMETEXT)|g' \
-e 's|++GITWEB_CSS++|$(GITWEB_CSS)|g' \
-e 's|++GITWEB_LOGO++|$(GITWEB_LOGO)|g' \
-e 's|++GITWEB_FAVICON++|$(GITWEB_FAVICON)|g' \
$< >$@+
chmod +x $@+
mv $@+ $@

BIN
gitweb/git-favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

5
gitweb/gitweb.perl

@ -48,6 +48,8 @@ our $home_text = "++GITWEB_HOMETEXT++"; @@ -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 @@ -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" .

Loading…
Cancel
Save