summaryrefslogtreecommitdiffstats
path: root/templates/base/head.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base/head.tmpl')
-rw-r--r--templates/base/head.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 8c14ccfb6d..5f27779235 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -97,7 +97,11 @@
{{end}}
{{end}}
<meta property="og:type" content="object" />
- <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
+ {{if .Repository.AvatarLink}}
+ <meta property="og:image" content="{{.Repository.AvatarLink}}" />
+ {{else}}
+ <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
+ {{end}}
{{else}}
<meta property="og:title" content="{{AppName}}">
<meta property="og:type" content="website" />