about summary refs log tree commit diff
path: root/app/views/tags/_og.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-10-07 20:00:35 +0200
committerGitHub <noreply@github.com>2017-10-07 20:00:35 +0200
commitf486ef2666dacbcb6fcd26e371bb5e945369dcfe (patch)
treec6e0dee82c450a62e56cf0ef368f49f2359513f1 /app/views/tags/_og.html.haml
parentd2dee6ea431f52ab90c568b21b25169d5129c7a6 (diff)
Redesign public hashtag pages (#5237)
Diffstat (limited to 'app/views/tags/_og.html.haml')
-rw-r--r--app/views/tags/_og.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/tags/_og.html.haml b/app/views/tags/_og.html.haml
new file mode 100644
index 000000000..853a499ae
--- /dev/null
+++ b/app/views/tags/_og.html.haml
@@ -0,0 +1,6 @@
+= opengraph 'og:site_name', t('about.hosted_on', domain: site_hostname)
+= 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 'twitter:card', 'summary'