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 @@ - + - +