Adding titles for everything now (honestly not sure how I forgot that)

Changed files
+21
public
src
+1
public/blog/index.html
··· 3 3 <head> 4 4 <link rel="stylesheet" href="/style.css" /> 5 5 <script type="text/javascript" src="/blog.js"></script> 6 + <title>CityboundForest - Blog</title> 6 7 </head> 7 8 <body> 8 9 <div id="nav-links">
+1
public/blog/item/index.html
··· 3 3 <head> 4 4 <link rel="stylesheet" href="/style.css" /> 5 5 <script type="module" src="/blog-item.js"></script> 6 + <title></title> 6 7 </head> 7 8 <body> 8 9 <div id="nav-links">
+1
public/index.html
··· 3 3 <head> 4 4 <link rel="stylesheet" href="/style.css" /> 5 5 <script src="index.js" type="text/javascript"></script> 6 + <title>CityboundForest - Home</title> 6 7 </head> 7 8 <body> 8 9 <div id="nav-links">
+1
public/portfolio/index.html
··· 3 3 <head> 4 4 <link rel="stylesheet" href="/style.css" /> 5 5 <script type="text/javascript" src="/portfolio.js"></script> 6 + <title></title> 6 7 </head> 7 8 <body> 8 9 <div id="nav-links">
+1
src/blog-item.ts
··· 10 10 }).then((data: { value: { content: string, title: string } }) => { 11 11 document.getElementById('title')!.innerText = data.value.title; 12 12 document.getElementById('blog-content')!.innerHTML += marked.parse(data.value.content); 13 + document.title = 'CityboundForest - Blog - ' + data.value.title; 13 14 }); 14 15 };
+4
src/index.ts
··· 7 7 8 8 if (el === null) { 9 9 document.getElementById('home-page')!.classList.add('active'); 10 + document.title = 'CityboundForest - Home'; 10 11 } else { 11 12 el.classList.add('active'); 13 + document.title = 'CityboundForest - ' + el.querySelector('h3')!.innerText; 12 14 } 13 15 14 16 const descs = document.querySelectorAll<HTMLSpanElement>('.portfolio-link .desc'); ··· 39 41 40 42 if (el === null) { 41 43 document.getElementById('home-page')!.classList.add('active'); 44 + document.title = 'CityboundForest - Home'; 42 45 } else { 43 46 el.classList.add('active'); 47 + document.title = 'CityboundForest - ' + el.querySelector('h3')!.innerText; 44 48 } 45 49 };
+12
src/portfolio.ts
··· 6 6 if (el !== null) { 7 7 el.classList.add('active'); 8 8 } 9 + 10 + if (el === null) { 11 + document.title = 'CityboundForest - Portfolio'; 12 + } else { 13 + document.title = 'CityboundForest - Portfolio - ' + el.querySelector('h3')!.innerText; 14 + } 9 15 }; 10 16 11 17 window.onhashchange = (event: HashChangeEvent) => { ··· 21 27 22 28 if (el !== null) { 23 29 el.classList.add('active'); 30 + } 31 + 32 + if (el === null) { 33 + document.title = 'CityboundForest - Portfolio'; 34 + } else { 35 + document.title = 'CityboundForest - ' + el.querySelector('h3')!.innerText; 24 36 } 25 37 };