gitweb: Do not automatically append " git" to custom site name
If you customized the site name, you probably do not want the " git" appended so that the page title is not bastardized; I want repo.or.cz pages titled "Public Git Hosting", not "Public Git Hosting git" (what's hosting what?). This slightly changes the $site_name semantics but only very insignificantly. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Petr Baudis committed
Oct 24, 2006 at 05:18 UTC
8be2890c994102d5748342f44bd6353bd482b58b
1 file changed
+4
-3
gitweb/gitweb.perl
+4
-3
@@ -39,7 +39,8 @@ our $home_link_str = "++GITWEB_HOME_LINK_STR++";
39
40
# name of your site or organization to appear in page titles
41
# replace this with something more descriptive for clearer bookmarks
42
-our $site_name = "++GITWEB_SITENAME++" || $ENV{'SERVER_NAME'} || "Untitled";
42
+our $site_name = "++GITWEB_SITENAME++"
43
+ || ($ENV{'SERVER_NAME'} || "Untitled") . " Git";
44
45
# filename of html text to include at top of each page
46
our $site_header = "++GITWEB_SITE_HEADER++";
@@ -1429,7 +1430,7 @@ sub git_header_html {
1430
my $status = shift || "200 OK";
1431
my $expires = shift;
1432
1432
- my $title = "$site_name git";
1433
+ my $title = "$site_name";
1434
if (defined $project) {
1435
$title .= " - $project";
1436
if (defined $action) {
@@ -3818,7 +3819,7 @@ sub git_opml {
3819
<?xml version="1.0" encoding="utf-8"?>
3820
<opml version="1.0">
3821
<head>
3821
- <title>$site_name Git OPML Export</title>
3822
+ <title>$site_name OPML Export</title>
3823
</head>
3824
<body>
3825
<outline text="git RSS feeds">