diff options
Diffstat (limited to 'app/views/accounts/_og.html.haml')
-rw-r--r-- | app/views/accounts/_og.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/accounts/_og.html.haml b/app/views/accounts/_og.html.haml new file mode 100644 index 000000000..b7f019c50 --- /dev/null +++ b/app/views/accounts/_og.html.haml @@ -0,0 +1,7 @@ +%meta{ property: 'og:site_name', content: site_title }/ +%meta{ property: 'og:title', content: [yield(:page_title).strip.presence, site_title].compact.join(' - ') }/ +%meta{ property: 'og:description', content: account.note }/ +%meta{ property: 'og:image', content: full_asset_url(account.avatar.url(:original)) }/ +%meta{ property: 'og:image:width', content: '120' }/ +%meta{ property: 'og:image:height', content: '120' }/ +%meta{ property: 'twitter:card', content: 'summary' }/ |