diff --git a/speech.js b/speech.js index 9ad2c025..abfe8fd0 100644 --- a/speech.js +++ b/speech.js @@ -54,10 +54,33 @@ const hbs = expressHandlebars.create({ + ` ); }, + addTwitterCard (assetType, source) { + if (assetType === 'image') { + return new Handlebars.SafeString( + ` + + + ` + ); + } else if (assetType === 'video') { + return new Handlebars.SafeString( + ` + + + + + + + + ` + ); + } + }, ifConditional (varOne, operator, varTwo, options) { switch (operator) { case '===': diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index 5de95460..9e1d8cad 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -1,5 +1,5 @@ - +
diff --git a/views/layouts/show.handlebars b/views/layouts/show.handlebars index 21a9a2a7..04290840 100644 --- a/views/layouts/show.handlebars +++ b/views/layouts/show.handlebars @@ -1,5 +1,5 @@ - + @@ -7,13 +7,7 @@