gab-social/app/views/statuses/_meta.html.haml
mgabdev aa88fc16c9 Fixed issue with showing status meta in html head/title tags
• Fixed:
- issue with showing status meta in html head/title tags
2020-12-23 17:38:18 -05:00

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