feat(home): add custom content for home page (#248)

This commit is contained in:
Dillon
2020-04-22 17:50:30 +08:00
committed by GitHub
parent a0ab272f7d
commit 3c38d54a87
20 changed files with 148 additions and 47 deletions

View File

@@ -325,7 +325,7 @@ class Theme {
initHeaderLink() {
for (let num = 1; num <= 6; num++) {
this.util.forEach(document.querySelectorAll('.page.single .content > h' + num), $header => {
this.util.forEach(document.querySelectorAll('.single .content > h' + num), $header => {
$header.classList.add('headerLink');
$header.innerHTML = `<a href="#${$header.id}" class="header-mark"></a>${$header.innerHTML}`;
});