From 8fef0cbc4906cefeddbc11075b1d7dd5ba5beb35 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 6 Oct 2018 12:22:29 +0300 Subject: [PATCH] Fixed page titles --- scripts/web.js | 2 +- static-parts/static-page-start.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/web.js b/scripts/web.js index 232a53dfb..57a477dca 100644 --- a/scripts/web.js +++ b/scripts/web.js @@ -270,7 +270,7 @@ const staticPageStartGenerator = (staticPart, heading, description) => {


${heading}

${description}


`; - return htmlCode; + return htmlCode.replace(/\$page_name/g, util.capitalize(heading)); } diff --git a/static-parts/static-page-start.html b/static-parts/static-page-start.html index dfab59bb1..094effe03 100644 --- a/static-parts/static-page-start.html +++ b/static-parts/static-page-start.html @@ -2,7 +2,7 @@ - Snippets Archive - 30 seconds of code + $page_name - 30 seconds of code