Move templates

This commit is contained in:
Las Zenow 2012-08-15 15:11:52 +02:00
parent 48d1997f4d
commit d924b577d1
9 changed files with 24 additions and 1 deletions

21
templates/index.html Normal file
View file

@ -0,0 +1,21 @@
{{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><img src="{{.CoverSmall}}" alt="{{.Title}}" /><a href="/book/{{.Title}}">{{.Title}}</a> - {{range .Author}}{{.}}, {{end}}</li>
{{end}}
{{end}}
</ul>
</p>
{{template "footer.html"}}