diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-10 02:21:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 02:21:30 +0200 |
commit | 2459da29c2e117c43c142bc386c2f4baf613cdc9 (patch) | |
tree | e2273afdcb5d0d776d5f9b93eb25aecbce796019 /app/views/accounts | |
parent | da7705b2746b36ccbe093d404d3f4c83a9b5e13e (diff) |
Add description meta tag additionally to og:description (#8941)
Fix #8685
Diffstat (limited to 'app/views/accounts')
-rw-r--r-- | app/views/accounts/_og.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/accounts/_og.html.haml b/app/views/accounts/_og.html.haml index a583b39c2..de948ec6a 100644 --- a/app/views/accounts/_og.html.haml +++ b/app/views/accounts/_og.html.haml @@ -1,7 +1,11 @@ +- description = account_description(account) + +%meta{ name: 'description', content: description }/ + = opengraph 'og:url', url = opengraph 'og:site_name', site_title = opengraph 'og:title', yield(:page_title).strip -= opengraph 'og:description', account_description(account) += opengraph 'og:description', description = opengraph 'og:image', full_asset_url(account.avatar.url(:original)) = opengraph 'og:image:width', '120' = opengraph 'og:image:height', '120' |