10 items per page on search
This commit is contained in:
parent
c64226ffb9
commit
b70ddd81ab
2 changed files with 40 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
<input type="submit" value="Search">
|
||||
</form>
|
||||
|
||||
<p>Found {{.Found}} books. Page {{.Page}}</p>
|
||||
|
||||
<ul>
|
||||
{{with .Books}}
|
||||
{{range .}}
|
||||
|
@ -11,3 +13,7 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
{{if .Prev}}<a href="{{.Prev}}"><Prev</a> {{end}}
|
||||
{{if .Next}}<a href="{{.Next}}">Next></a>{{end}}</p>
|
||||
|
|
Reference in a new issue