+1
public/blog/index.html
+1
public/blog/index.html
+1
public/blog/item/index.html
+1
public/blog/item/index.html
+1
public/index.html
+1
public/index.html
+1
public/portfolio/index.html
+1
public/portfolio/index.html
+1
src/blog-item.ts
+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
+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
+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
};