diff options
author | Dillon <dillonzq@outlook.com> | 2020-02-21 18:42:35 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-02-21 18:42:35 +0300 |
commit | 4e6fe224cc1934aa0459b2d888f243463bb998f7 (patch) | |
tree | 7f4a04449ba1ca8ee8b5cdf466c18a04868a3bcf /src | |
parent | 611518ddd17e736ee5dc246ec13b203950765934 (diff) |
chore(partials): refactor partials
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index f6e1460..68087b8 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -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}`; }); |