From 6a457eb7523aa43cad855e8492a1115476325a29 Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Sun, 11 Aug 2019 11:47:59 +0930 Subject: [PATCH] fix(open_graph): remove unused social meta tags --- themes/typing/scripts/openGraph.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/themes/typing/scripts/openGraph.js b/themes/typing/scripts/openGraph.js index 7e96475..f60512b 100644 --- a/themes/typing/scripts/openGraph.js +++ b/themes/typing/scripts/openGraph.js @@ -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() }