diff options
author | Matt Jankowski <mjankowski@thoughtbot.com> | 2017-04-08 06:15:40 -0400 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-08 12:15:40 +0200 |
commit | ca44c134554585ac4fe5dfa301f82697224ded9d (patch) | |
tree | 2ea21342a7f5d7f0983c3287167c2d34357b67f2 /app/helpers | |
parent | a345eb44fc502a0f255d1017313342649e8d4ee0 (diff) |
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
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/site_title_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/site_title_helper.rb b/app/helpers/site_title_helper.rb new file mode 100644 index 000000000..d2caa9203 --- /dev/null +++ b/app/helpers/site_title_helper.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module SiteTitleHelper + def site_title + Setting.site_title.to_s + end +end |