mirror of
https://github.com/golang/go
synced 2024-11-26 10:38:07 -07:00
cfd8b84f07
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
69 lines
1.8 KiB
HTML
69 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
{{with .Tabtitle}}
|
|
<title>{{html .}} - The Go Programming Language</title>
|
|
{{else}}
|
|
<title>The Go Programming Language</title>
|
|
{{end}}
|
|
<link type="text/css" rel="stylesheet" href="/doc/style.css">
|
|
<script type="text/javascript" src="/doc/godocs.js"></script>
|
|
{{if .SearchBox}}
|
|
<link rel="search" type="application/opensearchdescription+xml" title="godoc" href="/opensearch.xml" />
|
|
{{end}}
|
|
</head>
|
|
<body>
|
|
|
|
<div id="topbar"><div class="container{{if .Title}} wide{{end}}">
|
|
|
|
<form method="GET" action="/search">
|
|
<div id="menu">
|
|
<a href="/doc/">Documents</a>
|
|
<a href="/ref/">References</a>
|
|
<a href="/pkg/">Packages</a>
|
|
<a href="/project/">The Project</a>
|
|
<a href="/help/">Help</a>
|
|
<input type="text" id="search" name="q" class="inactive" value="Search">
|
|
</div>
|
|
<div id="heading"><a href="/">The Go Programming Language</a></div>
|
|
</form>
|
|
|
|
</div></div>
|
|
|
|
<div id="page"{{if .Title}} class="wide"{{end}}>
|
|
|
|
{{with .Title}}
|
|
<div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
|
|
<h1>{{html .}}</h1>
|
|
{{end}}
|
|
{{with .Subtitle}}
|
|
<h2>{{html .}}</h2>
|
|
{{end}}
|
|
|
|
{{/* The Table of Contents is automatically inserted in this <div>.
|
|
Do not delete this <div>. */}}
|
|
<div id="nav"></div>
|
|
|
|
{{/* Content is HTML-escaped elsewhere */}}
|
|
{{printf "%s" .Content}}
|
|
|
|
</div>
|
|
|
|
<div id="copyright">
|
|
Build version {{html .Version}}.
|
|
Except as noted, this content is licensed under a
|
|
Creative Commons Attribution 3.0 License.
|
|
</div>
|
|
|
|
</body>
|
|
<script type="text/javascript">
|
|
(function() {
|
|
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
|
po.src = 'https://apis.google.com/js/plusone.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
|
})();
|
|
</script>
|
|
</html>
|
|
|