Added checks in application.html.haml for tag, status, account for meta tags

enables meta tag content for search engine indexing and titles per each
This commit is contained in:
mgabdev 2019-08-17 01:23:21 -04:00
parent 5b27b6b646
commit 1e6cf79f9e

View File

@ -18,6 +18,13 @@
%meta{ name: 'theme-color', content: '#282c37' }/
%meta{ name: 'apple-mobile-web-app-capable', content: 'yes' }/
- if @tag
= render 'tags/meta', tag: @tag, initial_state_json: @initial_state_json
- elsif @stream_entry && @account
= render 'stream_entries/meta', stream_entry: @stream_entry, account: @account
- elsif @account
= render 'accounts/meta', account: @account, older_url: nil, newer_url: nil
%title= content_for?(:page_title) ? safe_join([yield(:page_title).chomp.html_safe, title], ' - ') : title
= stylesheet_pack_tag 'common', media: 'all'