From a4fd96a4de97dd204137bf3ee0799dd71be6552e Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 26 Jul 2016 13:41:47 +0100 Subject: [PATCH] Open graph support --- app.js | 1 + templates/partials/head.html | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 0ab9da3..0a7e61b 100644 --- a/app.js +++ b/app.js @@ -29,6 +29,7 @@ var md = markdown('commonmark', {html: true}); md.parser.use(emoji); Handlebars.registerHelper('markdown', function(text) { + if(!text) return; return md.parser.render(text); }); Handlebars.registerHelper('moment', function(date, format) { diff --git a/templates/partials/head.html b/templates/partials/head.html index 7cedd51..0e9fdf2 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -4,12 +4,15 @@ {{ site.title }} - + + + + + -