Added meta to application.html.haml for groups and unmatched routes

• Added:
- meta to application.html.haml for groups and unmatched routes
This commit is contained in:
mgabdev 2020-07-21 23:06:47 -05:00
parent 3b0ec6a270
commit ae814a01cb

View File

@ -36,9 +36,10 @@
= render 'stream_entries/meta', stream_entry: @stream_entry, account: @account
- elsif @account && @account.local?
= render 'accounts/meta', account: @account, older_url: nil, newer_url: nil
- elsif @group
= render 'groups/meta', group: @group
- else
- description = strip_tags(t('about.tagline'))
%meta{ name: 'description', content: description }/
= render partial: 'shared/og'
%title= content_for?(:page_title) ? safe_join([yield(:page_title).chomp.html_safe, title], ' - ') : title