aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2012-03-21 11:29:30 -0700
committerRobert Griesemer <gri@golang.org>2012-03-21 11:29:30 -0700
commitcfd8b84f072e1799456ad3dc350bc1a486a0e280 (patch)
tree7073fb4196df0abdfee255a24ea9c68c0b5e934e /lib
parente2662835b8dd3ca4aa69997afe3774467a677df8 (diff)
downloadgo-cfd8b84f072e1799456ad3dc350bc1a486a0e280.tar.xz
godoc: use shorter titles for tabs
In a browser with many open tabs, the tab titles become short and uninformative because they all start with the same prefix ("Package ", "Directory ", etc.). Permit use of shorter tab titles that start with the relevant information first. Fixes #3365. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5865056
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/godoc.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html
index 7efed83b92..feb96e50f4 100644
--- a/lib/godoc/godoc.html
+++ b/lib/godoc/godoc.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-{{with .Title}}
+{{with .Tabtitle}}
<title>{{html .}} - The Go Programming Language</title>
{{else}}
<title>The Go Programming Language</title>