From 4f01e1fdcf59927a1f4e87ea947a52e9ef6240bb Mon Sep 17 00:00:00 2001 From: Ben Visness Date: Tue, 17 Aug 2021 21:09:42 -0500 Subject: [PATCH] Add a title to the user profile page --- src/website/user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/website/user.go b/src/website/user.go index 19f2cc2b..b6e7111f 100644 --- a/src/website/user.go +++ b/src/website/user.go @@ -215,11 +215,15 @@ func UserProfile(c *RequestContext) ResponseData { c.Perf.EndBlock() + templateUser := templates.UserToTemplate(profileUser, c.Theme) + baseData := getBaseData(c) + baseData.Title = templateUser.Name + var res ResponseData res.MustWriteTemplate("user_profile.html", UserProfileTemplateData{ BaseData: baseData, - ProfileUser: templates.UserToTemplate(profileUser, c.Theme), + ProfileUser: templateUser, ProfileUserLinks: profileUserLinks, ProfileUserProjects: templateProjects, TimelineItems: timelineItems,