[x/blog] go.blog: add heading, fix menu link, tweak styles
R=r CC=golang-dev https://golang.org/cl/13458046 X-Blog-Commit: e0d1e2fc72f2407d54a88bbb037f76b0bedd83bb
This commit is contained in:
Родитель
8ad4222c4b
Коммит
cc8ce8cb92
|
@ -4,7 +4,7 @@
|
|||
{{define "content"}}
|
||||
{{template "doc" .Doc}}
|
||||
{{with .Doc.Related}}
|
||||
<h1>Related articles</h1>
|
||||
<h2>Related articles</h2>
|
||||
<ul>
|
||||
{{range .}}
|
||||
<li><a href="{{.Path}}">{{.Title}}</a></li>
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
#content .iframe, #content .image {
|
||||
margin: 20px;
|
||||
}
|
||||
#content .title {
|
||||
margin: 20px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -53,7 +56,7 @@
|
|||
<a href="{{.GodocURL}}/pkg/">Packages</a>
|
||||
<a href="{{.GodocURL}}/project/">The Project</a>
|
||||
<a href="{{.GodocURL}}/help/">Help</a>
|
||||
<a href="{{.GodocURL}}/blog/">Blog</a>
|
||||
<a href="{{.BasePath}}/">Blog</a>
|
||||
<input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
|
||||
</div>
|
||||
<div id="heading"><a href="{{.GodocURL}}/">The Go Programming Language</a></div>
|
||||
|
@ -111,6 +114,7 @@
|
|||
</div><!-- #sidebar -->
|
||||
|
||||
<div id="content">
|
||||
<h1><a href="{{.BasePath}}/">The Go Blog</a></h1>
|
||||
{{template "content" .}}
|
||||
</div><!-- #content -->
|
||||
|
||||
|
@ -168,7 +172,7 @@ $(function() {
|
|||
|
||||
{{define "doc"}}
|
||||
<div class="article">
|
||||
<h1 class="title"><a href="{{.Path}}">{{.Title}}</a></h1>
|
||||
<h3 class="title"><a href="{{.Path}}">{{.Title}}</a></h3>
|
||||
<p class="date">{{.Time.Format "2 January 2006"}}</p>
|
||||
{{.HTML}}
|
||||
{{with .Authors}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче