From 137a2270dfa3947b7ca877d0ac920ea68751567d Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 6 Jul 2017 22:26:02 +0200 Subject: [PATCH] More page titles --- pages/search/search.go | 2 +- pages/search/search.pixy | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/search/search.go b/pages/search/search.go index df5f1a59..0044ec82 100644 --- a/pages/search/search.go +++ b/pages/search/search.go @@ -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)) } diff --git a/pages/search/search.pixy b/pages/search/search.pixy index c588f2b5..b6ea2c5a 100644 --- a/pages/search/search.pixy +++ b/pages/search/search.pixy @@ -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