mirror of
https://github.com/carsonip/hugo-theme-minos
synced 2025-12-30 03:19:49 -08:00
Fix start TOC initial hide sublist
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
|
||||
$window.on('scroll', onScroll);
|
||||
$(document).ready(function() {
|
||||
$toc.find('a').parent('li').siblings('ul').hide();
|
||||
$toc.find('a').parent('li').find('ul').hide();
|
||||
onScroll();
|
||||
document.getElementsByClassName('article-toc')[0].style.display = '';
|
||||
});
|
||||
@@ -96,4 +96,4 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "nav.html" . }}
|
||||
</article>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user