diff --git a/app.js b/app.js index 0f48374..3b67641 100644 --- a/app.js +++ b/app.js @@ -316,7 +316,7 @@ handlebars = handlebars.create({ return''; }, snip: (text) => { - if(text.length > 155){ + if(text && text.length > 155){ return text.substring(0, 155) + '...'; } return text; diff --git a/views/layouts/layout.hbs b/views/layouts/layout.hbs index 5460b5b..f9b27fd 100644 --- a/views/layouts/layout.hbs +++ b/views/layouts/layout.hbs @@ -106,6 +106,7 @@ {{else}} {{/if}} + {{#unless result.productTitle}} - + {{/unless}} {{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}} {{~#if config.customCss}}{{/if}}