-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Want to display all level of TOC in a post, rather than part of it only when activated. #307
Comments
I give a method in my blog. For more detail, see this post. Just add line 140 - 142 into your custom css style file |
@dldylan Thanks a lot! It works! BTW your blog is excellent. |
this post is missing ... @dongleizhang |
Sorry for replying late. You can visit my GitHub repo to find it. @xiaohaoliang |
tks~ @dongleizhang |
If you want to expand all level of your TOC, add the following CSS style to .post-toc .nav .nav-child {
display: block;
} But we usually used more than third level of heading in the post, and all the headings expanded in the TOC make it chaotic. So I suppose that just extand all the first level nav item with the following CSS style would be the best practice. .post-toc .nav .nav-level-1>.nav-child {
display: block;
}
|
Added in #679 |
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs. |
I agree and want to create new issue
Expected behavior
I want to display all level of TOC, rather than only the first level of TOC initially and display sub-level of TOC only when I clicked a title in TOC.
Actual behavior
I am sorry I can't find a place to modify it, due to my poor knowledge of frontend.
Related issues: #531, #710
Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT.Pisces v5.1.4
NexT Scheme:
NexT.Pisces v5.1.4
NexT Configuration:
The text was updated successfully, but these errors were encountered: