Add a title to the user profile page

This commit is contained in:
Ben Visness 2021-08-17 21:09:42 -05:00
parent 20c05637d9
commit 4f01e1fdcf
1 changed files with 5 additions and 1 deletions

View File

@ -215,11 +215,15 @@ func UserProfile(c *RequestContext) ResponseData {
c.Perf.EndBlock() c.Perf.EndBlock()
templateUser := templates.UserToTemplate(profileUser, c.Theme)
baseData := getBaseData(c) baseData := getBaseData(c)
baseData.Title = templateUser.Name
var res ResponseData var res ResponseData
res.MustWriteTemplate("user_profile.html", UserProfileTemplateData{ res.MustWriteTemplate("user_profile.html", UserProfileTemplateData{
BaseData: baseData, BaseData: baseData,
ProfileUser: templates.UserToTemplate(profileUser, c.Theme), ProfileUser: templateUser,
ProfileUserLinks: profileUserLinks, ProfileUserLinks: profileUserLinks,
ProfileUserProjects: templateProjects, ProfileUserProjects: templateProjects,
TimelineItems: timelineItems, TimelineItems: timelineItems,