{{define "title"}}{{if .Data.q}}{{tf "Results for “%s”" .Data.q}}{{else}}{{t "Search"}}{{end}} · {{.Blog.Title}}{{end}} {{define "content"}}

{{if .Data.q}}{{tf "Results for “%s”" .Data.q}}{{else}}{{t "Search"}}{{end}}

{{template "searchform" .}}
{{if not .Data.q}}

{{t "Type a word or two to find posts."}}

{{else if not .Data.hits}}

{{tf "Nothing matched “%s”." .Data.q}}

{{else}}

{{if eq .Data.total 1}}{{t "One post matches."}}{{else}}{{tf "%d posts match." .Data.total}}{{end}}

{{if gt .Data.lastPage 1}}
{{if gt .Data.pageNum 1}}← {{t "Newer"}}{{end}} {{tf "Page %d of %d" .Data.pageNum .Data.lastPage}} {{if lt .Data.pageNum .Data.lastPage}}{{t "Older"}} →{{end}}
{{end}} {{end}} {{end}}