gab-social/app/views/accounts/_og.html.haml

14 lines
548 B
Plaintext
Raw Permalink Normal View History

2019-07-02 08:10:25 +01:00
- 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}"
2019-07-02 08:10:25 +01:00
= 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