Fixed page titles

This commit is contained in:
Angelos Chalaris
2018-10-06 12:22:29 +03:00
parent a8ebda3ed5
commit 8fef0cbc49
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ const staticPageStartGenerator = (staticPart, heading, description) => {
<div><button class="social fb"></button><button class="social instagram"></button><button class="social twitter"></button></div>
</nav><main class="col-centered"><span id="top"><br/><br/></span><h2 class="category-name">${heading}</h2>
<p style="text-align: justify">${description}</p><br />`;
return htmlCode;
return htmlCode.replace(/\$page_name/g, util.capitalize(heading));
}