Gab-Social/app/views/accounts/_og.html.haml
mgabdev 8d6d85f829 Update account, status meta tags
• Update:
- account, status meta tags
2020-05-26 20:12:19 -04:00

14 lines
548 B
Plaintext

- description = account_description(account)
%meta{ name: 'description', content: description }/
= opengraph 'og:url', url
= opengraph 'og:site_name', site_title
= opengraph 'og:title', "#{display_name(account)} (@#{account.username}) • #{site_hostname}"
= opengraph 'og:description', description
= opengraph 'og:image', full_asset_url(account.avatar.url(:original))
= opengraph 'og:image:width', '120'
= opengraph 'og:image:height', '120'
= opengraph 'twitter:card', 'summary'
= opengraph 'profile:username', account.local_username_and_domain