diff options
author | zeripath <art27@cantab.net> | 2020-09-11 07:41:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 07:41:43 +0100 |
commit | a064153235edebf5097098739795b56ebf6de219 (patch) | |
tree | bee71c8603bd603ab6d4f68bf3be4aadcfe07d42 /routers/org | |
parent | bfd9ca33b73453de580324b526b5f2b67dcdbe3d (diff) | |
download | gitea-a064153235edebf5097098739795b56ebf6de219.tar.gz gitea-a064153235edebf5097098739795b56ebf6de219.zip |
Set opengraph attributes on org pages (#12803)
Fix #12778
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/home.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/org/home.go b/routers/org/home.go index fa61218d3f..0a9f176bdc 100644 --- a/routers/org/home.go +++ b/routers/org/home.go @@ -32,6 +32,7 @@ func Home(ctx *context.Context) { return } + ctx.Data["PageIsUserProfile"] = true ctx.Data["Title"] = org.DisplayName() var orderBy models.SearchOrderBy @@ -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 |