|
131 | 131 | <meta property="og:type" content="profile" />
|
132 | 132 | <meta property="og:image" content="{{.Owner.AvatarLink}}" />
|
133 | 133 | <meta property="og:url" content="{{.Owner.HTMLURL}}" />
|
134 |
| - <meta property="og:site_name" content="{{AppName}}" /> |
| 134 | + {{if .Owner.Description}} |
| 135 | + <meta property="og:description" content="{{.Owner.Description}}"> |
| 136 | + {{end}} |
135 | 137 | {{else if .Repository}}
|
136 |
| - <meta property="og:title" content="{{.Repository.Name}}" /> |
| 138 | + {{if .Issue}} |
| 139 | + <meta property="og:title" content="{{.Issue.Title}}" /> |
| 140 | + <meta property="og:url" content="{{.Issue.HTMLURL}}" /> |
| 141 | + {{if .Issue.Content}} |
| 142 | + <meta property="og:description" content="{{.Issue.Content}}" /> |
| 143 | + {{end}} |
| 144 | + {{else}} |
| 145 | + <meta property="og:title" content="{{.Repository.Name}}" /> |
| 146 | + <meta property="og:url" content="{{.Repository.HTMLURL}}" /> |
| 147 | + {{if .Repository.Description}} |
| 148 | + <meta property="og:description" content="{{.Repository.Description}}" /> |
| 149 | + {{end}} |
| 150 | + {{end}} |
137 | 151 | <meta property="og:type" content="object" />
|
138 | 152 | <meta property="og:image" content="{{.Repository.Owner.AvatarLink}}" />
|
139 |
| - <meta property="og:url" content="{{.Repository.HTMLURL}}" /> |
140 |
| - {{if .Repository.Description}} |
141 |
| - <meta property="og:description" content="{{.Repository.Description}}" /> |
142 |
| - {{end}} |
143 |
| - <meta property="og:site_name" content="{{AppName}}" /> |
144 | 153 | {{else}}
|
145 | 154 | <meta property="og:title" content="{{AppName}}">
|
146 | 155 | <meta property="og:type" content="website" />
|
147 | 156 | <meta property="og:image" content="{{StaticUrlPrefix}}img/gitea-lg.png" />
|
148 | 157 | <meta property="og:url" content="{{AppUrl}}" />
|
149 | 158 | <meta property="og:description" content="{{MetaDescription}}">
|
150 | 159 | {{end}}
|
| 160 | +<meta property="og:site_name" content="{{AppName}}" /> |
151 | 161 | {{if .IsSigned }}
|
152 | 162 | {{ if ne .SignedUser.Theme "gitea" }}
|
153 | 163 | <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/theme-{{.SignedUser.Theme}}.css">
|
|
0 commit comments