From fd867c72624c555fe0aed6a9d97eeaa2deb627a7 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sun, 2 Feb 2025 08:28:23 +0000 Subject: [PATCH] Updarte social share image Signed-off-by: Marcus Noble --- app.js | 3 +++ templates/partials/head.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 71ae201..e60935f 100644 --- a/app.js +++ b/app.js @@ -91,6 +91,9 @@ Handlebars.registerHelper("buildTitle", function(title, siteTitle){ Handlebars.registerHelper("jointags", function(tags){ return (tags || '').split(' ').join(','); }); +Handlebars.registerHelper("encodetitle", function(str){ + return (str || '').replaceAll(' ', '%2B'); +}); Metalsmith(__dirname) .use(define({ diff --git a/templates/partials/head.html b/templates/partials/head.html index c459b42..e58643e 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -10,10 +10,10 @@ - + - +