mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
Set opengraph attributes on org pages (#12803)
Fix #12778 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
bfd9ca33b7
commit
a064153235
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ func Home(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.Data["PageIsUserProfile"] = true
|
||||||
ctx.Data["Title"] = org.DisplayName()
|
ctx.Data["Title"] = org.DisplayName()
|
||||||
|
|
||||||
var orderBy models.SearchOrderBy
|
var orderBy models.SearchOrderBy
|
||||||
|
@ -119,6 +120,7 @@ func Home(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.Data["Owner"] = org
|
||||||
ctx.Data["Repos"] = repos
|
ctx.Data["Repos"] = repos
|
||||||
ctx.Data["Total"] = count
|
ctx.Data["Total"] = count
|
||||||
ctx.Data["MembersTotal"] = membersCount
|
ctx.Data["MembersTotal"] = membersCount
|
||||||
|
|
Loading…
Reference in a new issue