Restructure templates to use includes
This commit is contained in:
parent
8e4a37b558
commit
18454021c3
8 changed files with 19 additions and 14 deletions
|
@ -1,3 +1,5 @@
|
|||
{{template "header.html"}}
|
||||
|
||||
<h1>Search</h1>
|
||||
<form action="/search/">
|
||||
<input type="search" name="q" value="{{.Search}}"/>
|
||||
|
@ -17,3 +19,5 @@
|
|||
<p>
|
||||
{{if .Prev}}<a href="{{.Prev}}"><Prev</a> {{end}}
|
||||
{{if .Next}}<a href="{{.Next}}">Next></a>{{end}}</p>
|
||||
|
||||
{{template "footer.html"}}
|
||||
|
|
Reference in a new issue