{{template "header.html"}}

<h1>Imperial Library of Trantor</h1>
<p><img src="/img/library.jpg" alt="library" /></p>
<form action="/search/">
	<input type="search" name="q" />
	<input type="submit" value="Search">
</form>
<p>Search on {{.Count}} books.</p>

<p>Last books added:
<ul>
{{with .Books}}
	{{range .}}
	<li><a href="/book/{{.Title}}">{{if .CoverSmall}}<img src="{{.CoverSmall}}" alt="{{.Title}}" />{{end}}
		<strong>{{.Title}}</strong></a> - {{range .Author}}{{.}}, {{end}}</li>
	{{end}}
{{end}}
</ul>
</p>

{{template "footer.html"}}