Skip to content
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

博客目录不显示二级标题 #130

Open
cyberwave opened this issue Feb 4, 2021 · 2 comments
Open

博客目录不显示二级标题 #130

cyberwave opened this issue Feb 4, 2021 · 2 comments

Comments

@cyberwave
Copy link

该主题在博客左侧的目录树,只显示一级标题,不是二级标题,是设计就这样,还是设置问题?
如果是就这样设计?有没有计划添加二级甚至三级目录?
如果是我设置问题?那该如何设置它呢?

@jumoshen
Copy link

我也是遇到了同样的问题
将config添加
[markup.tableOfContents]
endLevel = 3
ordered = true
startLevel = 2

只有展示为有序列表的时候才能出来二级目录

@lthcweb
Copy link

lthcweb commented Feb 18, 2023

layouts/partials/toc.html里面第53行:

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

删除 display: none;就好了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants