From: Alp Toker <alp@atoker.com>
To: git@vger.kernel.org
Subject: [PATCH] gitweb: Include a site name in page titles
Date: Tue, 11 Jul 2006 11:19:35 +0100 [thread overview]
Message-ID: <1152613179634-git-send-email-alp@atoker.com> (raw)
In-Reply-To: <11526131781900-git-send-email-alp@atoker.com>
Tip Of The Day:
<title>: the most important element of a quality Web page.
This helps users tell one 'git' bookmark apart from the other in their
browser and improves the indexing of gitweb sites in Web search engines.
Signed-off-by: Alp Toker <alp@atoker.com>
---
gitweb/gitweb.cgi | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index bd9b9de..b12417b 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -46,6 +46,9 @@ if (! -d $git_temp) {
# target of the home link on top of all pages
our $home_link = $my_uri;
+# name of your site or organization to appear in page titles
+our $site_name = "Untitled";
+
# html text to include at home page
our $home_text = "indextext.html";
@@ -280,7 +283,7 @@ sub git_header_html {
my $status = shift || "200 OK";
my $expires = shift;
- my $title = "git";
+ my $title = "$site_name git";
if (defined $project) {
$title .= " - $project";
if (defined $action) {
@@ -1770,7 +1773,7 @@ sub git_opml {
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n".
"<opml version=\"1.0\">\n".
"<head>".
- " <title>Git OPML Export</title>\n".
+ " <title>$site_name Git OPML Export</title>\n".
"</head>\n".
"<body>\n".
"<outline text=\"git RSS feeds\">\n";
--
1.4.1.g97c7-dirty
next prev parent reply other threads:[~2006-07-11 10:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 10:19 [PATCH] Typo fix Alp Toker
2006-07-11 10:19 ` [PATCH] gitweb: Send XHTML as 'application/xhtml+xml' where possible Alp Toker
2006-07-11 10:19 ` Alp Toker [this message]
2006-07-11 10:19 ` [PATCH] gitweb: Use the git binary in the search path by default Alp Toker
2006-07-11 10:19 ` [PATCH] git-send-email: Remove redundant Reply-To header Alp Toker
2006-07-11 10:19 ` [PATCH] Install built-ins as symlinks Alp Toker
2006-07-11 11:15 ` Andreas Ericsson
2006-07-11 14:16 ` Johannes Schindelin
2006-07-11 14:58 ` Alp Toker
2006-07-11 18:02 ` Johannes Schindelin
2006-07-11 18:48 ` Petr Baudis
2006-07-12 0:01 ` Alex Riesen
2006-07-11 18:36 ` Petr Baudis
2006-07-11 19:56 ` [PATCH] gitweb: Use the git binary in the search path by default Junio C Hamano
2006-07-11 11:48 ` [PATCH] gitweb: Include a site name in page titles Martin Langhoff
2006-07-11 19:48 ` Junio C Hamano
2006-07-11 22:37 ` [PATCH] Typo fix Pavel Roskin
-- strict thread matches above, loose matches on Subject: below --
2006-07-11 20:10 [PATCH] gitweb: Include a site name in page titles Alp Toker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1152613179634-git-send-email-alp@atoker.com \
--to=alp@atoker.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).