From 0a7e8320b22412e8a45545026fafe1be1d6b9051 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 10 May 2018 21:38:19 +0900 Subject: Add alternate for RSS (#7436) --- app/views/tags/show.html.haml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/views/tags') diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml index d46f35999..f6e452f18 100644 --- a/app/views/tags/show.html.haml +++ b/app/views/tags/show.html.haml @@ -2,6 +2,8 @@ = "##{@tag.name}" - content_for :header_tags do + %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' -- cgit From bd5f57cbc377fea9422e6749d4bd8331d69b39e3 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 10 May 2018 21:38:40 +0900 Subject: Strip tags from og:description on public tag page (#7437) --- app/views/tags/_og.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/tags') diff --git a/app/views/tags/_og.html.haml b/app/views/tags/_og.html.haml index 853a499ae..a7c289bcb 100644 --- a/app/views/tags/_og.html.haml +++ b/app/views/tags/_og.html.haml @@ -2,5 +2,5 @@ = opengraph 'og:url', tag_url(@tag) = opengraph 'og:type', 'website' = opengraph 'og:title', "##{@tag.name}" -= opengraph 'og:description', t('about.about_hashtag_html', hashtag: @tag.name) += opengraph 'og:description', strip_tags(t('about.about_hashtag_html', hashtag: @tag.name)) = opengraph 'twitter:card', 'summary' -- cgit