More page titles

This commit is contained in:
Eduard Urbach 2017-07-06 22:26:02 +02:00
parent e28b11c322
commit 137a2270df
2 changed files with 4 additions and 2 deletions

View File

@ -14,5 +14,5 @@ func Get(ctx *aero.Context) string {
term := ctx.Query("q")
userResults, animeResults := arn.Search(term, maxUsers, maxAnime)
return ctx.HTML(components.SearchResults(userResults, animeResults))
return ctx.HTML(components.SearchResults(term, userResults, animeResults))
}

View File

@ -1,4 +1,6 @@
component SearchResults(users []*arn.User, animeResults []*arn.Anime)
component SearchResults(term string, users []*arn.User, animeResults []*arn.Anime)
h1.page-title= "Search: " + term
.widgets
.widget
h3 Users