aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-11-05 22:46:34 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-11-05 22:46:34 +0800
commit8d390991f895e079e21f5d1c550e0736a29e8cea (patch)
tree521760f1911c019c0bbde13c9ad10a1a1736418c /src/js
parentf4bcf93d0ea8bde5a68da52554499f5e8dd1d91d (diff)
feat(title): add anchor
Diffstat (limited to 'src/js')
-rw-r--r--src/js/even.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/even.js b/src/js/even.js
index c82eb41..a2cee48 100644
--- a/src/js/even.js
+++ b/src/js/even.js
@@ -213,7 +213,7 @@ Even._linkToc = function() {
const headers = document.querySelectorAll('.post-content>h' + num);
for (let i = 0; i < headers.length; i++) {
const header = headers[i];
- header.innerHTML = `<a href="#${header.id}" class="headerlink"></a>${header.innerHTML}`;
+ header.innerHTML = `<a href="#${header.id}" class="headerlink anchor"><i class="iconfont icon-link"></i></a>${header.innerHTML}`;
}
}
};