saasitone/templ/pages/search.templ

15 lines
299 B
Plaintext

package pages
import "git.grosinger.net/tgrosinger/saasitone/pkg/page"
type SearchResult struct {
Title string
URL string
}
templ Search(p page.Page, results []SearchResult) {
for _, result := range results {
<a class="panel-block" href={ templ.URL(result.URL) }>{ result.Title }</a>
}
}