template: move byline to top of post

Especially for long blog posts,
it doesn't make sense to bury
who wrote it until the very end.
That can be important context for the reader.
(Also, compare with newspapers etc.)

Change-Id: I3c4b36cf78e94eb461c1ba6b520e2dbff92899aa
Reviewed-on: https://go-review.googlesource.com/c/blog/+/188517
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
diff --git a/template/root.tmpl b/template/root.tmpl
index 9a88072..ea297a1 100644
--- a/template/root.tmpl
+++ b/template/root.tmpl
@@ -168,10 +168,10 @@
 {{define "doc"}}
 	<div class="article" data-slug="{{.Path}}">
 		<h3 class="title"><a href="{{.Path}}">{{.Title}}</a></h3>
-		<p class="date">{{.Time.Format "2 January 2006"}}</p>
+		<p class="author">
+		{{with .Authors}}{{authors .}}<br>{{end}}
+		{{.Time.Format "2 January 2006"}}
+		</p>
 		{{.HTML}}
-		{{with .Authors}}
-			<p class="author">By {{authors .}}</p>
-		{{end}}
 	</div>
 {{end}}