gab-social/app/views/statuses/_meta.html.haml

17 lines
631 B
Plaintext

- the_title = t('statuses.title', name: display_name(account), quote: truncate(status.spoiler_text.presence, length: 50, omission: '…', escape: false))
- content_for :page_title do
= the_title
- content_for :header_tags do
- if account.user&.setting_noindex
%meta{ name: 'robots', content: 'noindex' }/
= opengraph 'og:site_name', site_title
= opengraph 'og:type', 'article'
= opengraph 'og:title', the_title
= opengraph 'og:url', short_account_status_url(account, status)
= render 'statuses/og_description', status: status, account: account
= render 'statuses/og_image', status: status, account: account