FEATURE: Add type=website OpenGraph meta tag (#13376)
This commit is contained in:
parent
a470e880bd
commit
f36ecf86f8
|
@ -237,6 +237,7 @@ module ApplicationHelper
|
||||||
# Add opengraph & twitter tags
|
# Add opengraph & twitter tags
|
||||||
result = []
|
result = []
|
||||||
result << tag(:meta, property: 'og:site_name', content: SiteSetting.title)
|
result << tag(:meta, property: 'og:site_name', content: SiteSetting.title)
|
||||||
|
result << tag(:meta, property: 'og:type', content: 'website')
|
||||||
|
|
||||||
if opts[:twitter_summary_large_image].present?
|
if opts[:twitter_summary_large_image].present?
|
||||||
result << tag(:meta, name: 'twitter:card', content: "summary_large_image")
|
result << tag(:meta, name: 'twitter:card', content: "summary_large_image")
|
||||||
|
|
Loading…
Reference in New Issue