mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-13 22:55:07 +01:00
ff44b2e92d
- Add missing meta description to profiles - Add canonical rel link to landing page - Remove linebreaks from title tags - Add username to profile title - Add toots/following/followers to profile description tags - Add next/prev rel links to profiles - Do not index follower/following variants of profiles
10 lines
463 B
Plaintext
10 lines
463 B
Plaintext
= opengraph 'og:url', url
|
|
= opengraph 'og:site_name', site_title
|
|
= opengraph 'og:title', [yield(:page_title).strip.presence, site_title].compact.join(' - ')
|
|
= opengraph 'og:description', account_description(account)
|
|
= 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
|