diff --git a/public/assets/img/content-freedom-large.png b/public/assets/img/content-freedom-large.png new file mode 100644 index 00000000..a352c3c8 Binary files /dev/null and b/public/assets/img/content-freedom-large.png differ diff --git a/speech.js b/speech.js index abfe8fd0..88da18cb 100644 --- a/speech.js +++ b/speech.js @@ -49,15 +49,35 @@ const hbs = expressHandlebars.create({ ); }, addOpenGraph (title, url, type, source, mimeType) { - return new Handlebars.SafeString( - ` - - - - - - ` - ); + if (type === 'image') { + return new Handlebars.SafeString( + ` + + + + + + + + + + ` + ); + } else if (type === 'video') { + return new Handlebars.SafeString( + ` + + + + + + + + + + ` + ); + } }, addTwitterCard (assetType, source) { if (assetType === 'image') { @@ -71,7 +91,7 @@ const hbs = expressHandlebars.create({ return new Handlebars.SafeString( ` - + diff --git a/views/layouts/show.handlebars b/views/layouts/show.handlebars index a72b1ccc..9f24dc47 100644 --- a/views/layouts/show.handlebars +++ b/views/layouts/show.handlebars @@ -7,6 +7,7 @@