From c1b3a291cb1139088438c57171d0ce79a7b1e031 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 9 Nov 2017 14:30:13 -0800 Subject: [PATCH] updated handlebar twitter meta helper --- helpers/handlebarsHelpers.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/helpers/handlebarsHelpers.js b/helpers/handlebarsHelpers.js index 57f501d5..2a75e385 100644 --- a/helpers/handlebarsHelpers.js +++ b/helpers/handlebarsHelpers.js @@ -48,20 +48,17 @@ module.exports = { addTwitterCard (mimeType, source, embedUrl, directFileUrl) { let basicTwitterTags = ``; if (mimeType === 'video/mp4') { - return new Handlebars.SafeString( - `${basicTwitterTags} - - - - - - - ` - ); + let twitterName = ''; + let twitterPlayer = ``; + let twitterPlayerWidth = ''; + let twitterTextPlayerWidth = ''; + let twitterPlayerHeight = ''; + let twitterPlayerStream = ``; + let twitterPlayerStreamContentType = ''; + return new Handlebars.SafeString(`${basicTwitterTags} ${twitterName} ${twitterPlayer} ${twitterPlayerWidth} ${twitterTextPlayerWidth} ${twitterPlayerHeight} ${twitterPlayerStream} ${twitterPlayerStreamContentType}`); } else { - return new Handlebars.SafeString( - `${basicTwitterTags} ` - ); + let twitterCard = ''; + return new Handlebars.SafeString(`${basicTwitterTags} ${twitterCard}`); } }, ifConditional (varOne, operator, varTwo, options) {