fix(open_graph): remove unused social meta tags

This commit is contained in:
curben 2019-08-11 11:47:59 +09:30
parent 9f5e8de651
commit 6a457eb752
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 0 additions and 23 deletions

View File

@ -138,29 +138,6 @@ function openGraphHelper (options = {}) {
result += meta('twitter:image', images[0], false)
}
if (options.twitter_id) {
let twitterId = options.twitter_id
if (twitterId[0] !== '@') twitterId = `@${twitterId}`
result += meta('twitter:creator', twitterId)
}
if (options.twitter_site) {
result += meta('twitter:site', options.twitter_site, false)
}
if (options.google_plus) {
result += `${htmlTag('link', { rel: 'publisher', href: options.google_plus })}\n`
}
if (options.fb_admins) {
result += og('fb:admins', options.fb_admins)
}
if (options.fb_app_id) {
result += og('fb:app_id', options.fb_app_id)
}
return result.trim()
}