chore(partials): refactor partials
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
|
||||
initHeaderLink() {
|
||||
for (let num = 1; num <= 6; num++) {
|
||||
this.util.forEach(document.querySelectorAll('.content > h' + num), (header) => {
|
||||
this.util.forEach(document.querySelectorAll('.page.single .content > h' + num), (header) => {
|
||||
header.classList.add('headerLink');
|
||||
header.innerHTML = `<a href="#${header.id}"></a>${header.innerHTML}`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user