Skip to content

Commit

Permalink
gitweb: Do not automatically append " git" to custom site name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed Oct 24, 2006
1 parent 88ad729 commit 8be2890
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

# name of your site or organization to appear in page titles
# replace this with something more descriptive for clearer bookmarks
our $site_name = "++GITWEB_SITENAME++" || $ENV{'SERVER_NAME'} || "Untitled";
our $site_name = "++GITWEB_SITENAME++"
|| ($ENV{'SERVER_NAME'} || "Untitled") . " Git";

# filename of html text to include at top of each page
our $site_header = "++GITWEB_SITE_HEADER++";
Expand Down Expand Up @@ -1429,7 +1430,7 @@ sub git_header_html {
my $status = shift || "200 OK";
my $expires = shift;

my $title = "$site_name git";
my $title = "$site_name";
if (defined $project) {
$title .= " - $project";
if (defined $action) {
Expand Down Expand Up @@ -3818,7 +3819,7 @@ sub git_opml {
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>$site_name Git OPML Export</title>
<title>$site_name OPML Export</title>
</head>
<body>
<outline text="git RSS feeds">
Expand Down

0 comments on commit 8be2890

Please sign in to comment.