Updated status meta description and title

• Updated:
- status meta description and title
This commit is contained in:
mgabdev 2020-07-24 22:36:58 -05:00
parent 09489ec03e
commit 5f0ba70741
2 changed files with 5 additions and 3 deletions

@ -1,5 +1,7 @@
- the_title = "#{display_name(account)} on Gab"
- content_for :page_title do
= "#{display_name(account)} on Gab"
= the_title
- content_for :header_tags do
- if account.user&.setting_noindex
@ -11,7 +13,7 @@
= opengraph 'og:site_name', site_title
= opengraph 'og:type', 'article'
= opengraph 'og:title', t('statuses.title', name: display_name(account), quote: stream_entry.activity.spoiler_text.presence || stream_entry.activity.text)
= opengraph 'og:title', the_title
= opengraph 'og:url', short_account_status_url(account, stream_entry.activity)
= render 'stream_entries/og_description', activity: stream_entry.activity, account: account

@ -1,4 +1,4 @@
- description = t('statuses.title', name: display_name(account), quote: truncate(activity.spoiler_text.presence || activity.text, length: 50, omission: '…', escape: false))
- description = activity.spoiler_text.presence || activity.text
%meta{ name: 'description', content: description }/
= opengraph 'og:description', description