Added a new file for tags view meta content

This commit is contained in:
mgabdev 2019-08-17 01:13:56 -04:00
parent 004dde2543
commit 8ac59b3336
2 changed files with 11 additions and 10 deletions

@ -0,0 +1,10 @@
- content_for :page_title do
= "##{@tag.name} - Hashtag | #{site_hostname}"
- content_for :header_tags do
%meta{ name: 'robots', content: 'noindex' }/
%link{ rel: 'alternate', type: 'application/rss+xml', href: tag_url(@tag, format: 'rss') }/
%script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
= javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous'
= render 'tags/og'

@ -1,13 +1,4 @@
- content_for :page_title do
= "##{@tag.name}"
- content_for :header_tags do
%meta{ name: 'robots', content: 'noindex' }/
%link{ rel: 'alternate', type: 'application/rss+xml', href: tag_url(@tag, format: 'rss') }/
%script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
= javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous'
= render 'og'
= render 'tags/meta', tag: @tag, initial_state_json: @initial_state_json
.page-header
%h1= "##{@tag.name}"