From 8f13ad501dc7020166e7cf925b145f8ffe62903f Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Wed, 12 May 2021 09:27:51 +0100 Subject: [PATCH] Added opengraph image to posts --- app.js | 4 +++- templates/partials/head.html | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 0caa8c6..0fdcab8 100644 --- a/app.js +++ b/app.js @@ -57,7 +57,9 @@ Handlebars.registerHelper("buildTitle", function(title, siteTitle){ } return title; }); - +Handlebars.registerHelper("jointags", function(tags){ + return (tags || '').split(' ').join(','); +}); Metalsmith(__dirname) .use(define({ diff --git a/templates/partials/head.html b/templates/partials/head.html index 4cff1c9..966ff36 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -9,7 +9,11 @@ - + + + + +