Updarte social share image

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2025-02-02 08:28:23 +00:00
parent 3bdc78303d
commit fd867c7262
2 changed files with 5 additions and 2 deletions

3
app.js
View File

@@ -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({