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.tmpl37
1 files changed, 1 insertions, 36 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index 8eebaebd70..c3645209cd 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -25,42 +25,7 @@
.ui.secondary.menu .dropdown.item > .menu { margin-top: 0; }
</style>
</noscript>
-{{if .PageIsUserProfile}}
- <meta property="og:title" content="{{.ContextUser.DisplayName}}">
- <meta property="og:type" content="profile">
- <meta property="og:image" content="{{.ContextUser.AvatarLink ctx}}">
- <meta property="og:url" content="{{.ContextUser.HTMLURL}}">
- {{if .ContextUser.Description}}
- <meta property="og:description" content="{{.ContextUser.Description}}">
- {{end}}
-{{else if .Repository}}
- {{if .Issue}}
- <meta property="og:title" content="{{.Issue.Title}}">
- <meta property="og:url" content="{{.Issue.HTMLURL}}">
- {{if .Issue.Content}}
- <meta property="og:description" content="{{.Issue.Content}}">
- {{end}}
- {{else}}
- <meta property="og:title" content="{{.Repository.Name}}">
- <meta property="og:url" content="{{.Repository.HTMLURL}}">
- {{if .Repository.Description}}
- <meta property="og:description" content="{{.Repository.Description}}">
- {{end}}
- {{end}}
- <meta property="og:type" content="object">
- {{if (.Repository.AvatarLink ctx)}}
- <meta property="og:image" content="{{.Repository.AvatarLink ctx}}">
- {{else}}
- <meta property="og:image" content="{{.Repository.Owner.AvatarLink ctx}}">
- {{end}}
-{{else}}
- <meta property="og:title" content="{{AppName}}">
- <meta property="og:type" content="website">
- <meta property="og:image" content="{{AssetUrlPrefix}}/img/logo.png">
- <meta property="og:url" content="{{AppUrl}}">
- <meta property="og:description" content="{{MetaDescription}}">
-{{end}}
- <meta property="og:site_name" content="{{AppName}}">
+ {{template "base/head_opengraph" .}}
{{template "base/head_style" .}}
{{template "custom/header" .}}
</head>