From ca44c134554585ac4fe5dfa301f82697224ded9d Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sat, 8 Apr 2017 06:15:40 -0400 Subject: Use Setting.site_title value for `og:site_name` occurrences (#1194) * Add helper method to return Setting.site_title * Use site_title helper in application layout * Use site_title value for og:site_name --- app/views/about/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/about') diff --git a/app/views/about/index.html.haml b/app/views/about/index.html.haml index ebca4213a..f6b0c1668 100644 --- a/app/views/about/index.html.haml +++ b/app/views/about/index.html.haml @@ -5,7 +5,7 @@ = Rails.configuration.x.local_domain - content_for :header_tags do - %meta{ property: 'og:site_name', content: 'Mastodon' }/ + %meta{ property: 'og:site_name', content: site_title }/ %meta{ property: 'og:type', content: 'website' }/ %meta{ property: 'og:title', content: Rails.configuration.x.local_domain }/ %meta{ property: 'og:description', content: @description.blank? ? "Mastodon is a free, open-source social network server. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the social network seamlessly" : strip_tags(@description) }/ -- cgit