FEATURE: Add type=website OpenGraph meta tag (#13376)

This commit is contained in:
Rafael dos Santos Silva 2021-06-14 15:13:55 -03:00 committed by GitHub
parent a470e880bd
commit f36ecf86f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ module ApplicationHelper
# Add opengraph & twitter tags
result = []
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?
result << tag(:meta, name: 'twitter:card', content: "summary_large_image")