Added a new file for tags view meta content
This commit is contained in:
parent
004dde2543
commit
8ac59b3336
10
app/views/tags/_meta.html.haml
Normal file
10
app/views/tags/_meta.html.haml
Normal file
@ -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
|
= render 'tags/meta', tag: @tag, initial_state_json: @initial_state_json
|
||||||
= "##{@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'
|
|
||||||
|
|
||||||
.page-header
|
.page-header
|
||||||
%h1= "##{@tag.name}"
|
%h1= "##{@tag.name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user