Skip to content

Commit

Permalink
Set opengraph attributes on org pages (#12803)
Browse files Browse the repository at this point in the history
Fix #12778

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath committed Sep 11, 2020
1 parent bfd9ca3 commit a064153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/org/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func Home(ctx *context.Context) {
return
}

ctx.Data["PageIsUserProfile"] = true
ctx.Data["Title"] = org.DisplayName()

var orderBy models.SearchOrderBy
Expand Down Expand Up @@ -119,6 +120,7 @@ func Home(ctx *context.Context) {
return
}

ctx.Data["Owner"] = org
ctx.Data["Repos"] = repos
ctx.Data["Total"] = count
ctx.Data["MembersTotal"] = membersCount
Expand Down

0 comments on commit a064153

Please sign in to comment.