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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure of headers in toc #15

Open
soonraah opened this issue Sep 27, 2020 · 3 comments
Open

Structure of headers in toc #15

soonraah opened this issue Sep 27, 2020 · 3 comments

Comments

@soonraah
Copy link

Thank you for a good theme. I love it 馃槃

I suggest to improve toc structures.
When I write a Markdown of content like below,

+++
toc = true
+++

## Foo

### Foo 1

...

### Foo 2

...

## Bar

### Bar 1

...

(including words > 400)

its toc appears like below on my website.

Foo
Foo1
Foo2
Bar
Bar1

The structure of headers is not applied in toc.
All headers look like in parallel.
I think it's better to apply structures like below.

Foo
  Foo1
  Foo2
Bar
  Bar1

How do you think?
(Of course, I know I can fix it by custom.css for me)

@soonraah
Copy link
Author

In my case it works with #16.

@7hacker
Copy link

7hacker commented Mar 23, 2021

+1 would like this feature as well, the above PR works but I'm not clear what the app.css changes include and if they have any other effect? @soonraah

@7hacker
Copy link

7hacker commented Mar 23, 2021

Just found that app.css in the above PR only contains one additional style (below) so Im just going to adapt this for my usage of the toc, thanks @soonraah

.toc>nav li>ul{padding-left:1em}.cdata

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

2 participants