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> <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> </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 />`; <p style="text-align: justify">${description}</p><br />`;
return htmlCode; return htmlCode.replace(/\$page_name/g, util.capitalize(heading));
} }

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<link rel="stylesheet" href="./style.css"> <link rel="stylesheet" href="./style.css">
<title>Snippets Archive - 30 seconds of code</title> <title>$page_name - 30 seconds of code</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="description" content="Curated collection of useful Javascript snippets that you can understand in 30 seconds or less."> <meta name="description" content="Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.">
<meta name="keywords" content="javascript, snippets, code, programming"> <meta name="keywords" content="javascript, snippets, code, programming">