mirror of https://github.com/mastodon/mastodon
Add meta tags for OGP to following & follow page (#2052)
* Add meta tags for OGP to following & follow page * simplify render helper * Follow up #2133 * og:type is only accounts/show * revert accounts/{following,followers}pull/2155/head
parent
fe1ddc3b96
commit
2510119f19
@ -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' }/
|
@ -1,6 +1,9 @@
|
||||
- content_for :page_title do
|
||||
= t('accounts.people_who_follow', name: display_name(@account))
|
||||
|
||||
- content_for :header_tags do
|
||||
= render 'accounts/og', account: @account
|
||||
|
||||
= render 'accounts/header', account: @account
|
||||
|
||||
= render 'accounts/follow_grid', accounts: @accounts
|
||||
|
@ -1,6 +1,9 @@
|
||||
- content_for :page_title do
|
||||
= t('accounts.people_followed_by', name: display_name(@account))
|
||||
|
||||
- content_for :header_tags do
|
||||
= render 'accounts/og', account: @account
|
||||
|
||||
= render 'accounts/header', account: @account
|
||||
|
||||
= render 'accounts/follow_grid', accounts: @accounts
|
||||
|
Loading…
Reference in New Issue