summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authoramzrk22020-06-03 19:33:30 +0800
committeramzrk22020-06-03 19:33:30 +0800
commit2cbde93423c7792929809e95a908913060d786cf (patch)
treeea0705cb79f7cae4effa1cfdfed1e3c0d120d30e /assets/js
parentdc8d94d73fa6f72c17b522e5bc4416129fae7967 (diff)
downloadhugo-theme-fuji-2cbde93423c7792929809e95a908913060d786cf.tar.gz
hugo-theme-fuji-2cbde93423c7792929809e95a908913060d786cf.tar.bz2
hugo-theme-fuji-2cbde93423c7792929809e95a908913060d786cf.zip
Update strong & em styles
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/fuji.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/assets/js/fuji.js b/assets/js/fuji.js
index 66892af..fbd0359 100644
--- a/assets/js/fuji.js
+++ b/assets/js/fuji.js
@@ -56,16 +56,6 @@ if (document.querySelector('span.post-comment-notloaded')) {
document.querySelector('span.post-comment-notloaded').addEventListener('click', loadComment);
}
-// remove empty ul in toc if article only have ## and ###
-var secondQueryOfToc = document.querySelectorAll('.sidebar-toc ul ul');
-if (secondQueryOfToc.length > 0) {
- secondQueryOfToc.forEach((value, key, parent) => {
- if (value.innerText === '') {
- value.setAttribute('style', 'display: none;');
- }
- });
-}
-
// to-top button
document.querySelector('.btn .btn-scroll-top').addEventListener('click', () => {
document.documentElement.scrollTop = 0;