mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
OpenGraph: use repo avatar if exist (#12586)
This commit is contained in:
parent
63f3c42be9
commit
4b97f9018b
2 changed files with 10 additions and 1 deletions
|
@ -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" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue