feat(home): add custom content for home page (#248)
This commit is contained in:
@@ -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}`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user