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

How does section numbering work? It seems to generate incorrect numbers as 1.1, 1.2, 2.3, 2.4... instead of 1.1, 1.2, 2.1, 2.2,... #81

Open
RJTK opened this issue Mar 15, 2023 · 2 comments

Comments

@RJTK
Copy link

RJTK commented Mar 15, 2023

Is the logic for section numbering present in typo.scss? I have noticed that the sub-section numbering appears to not reset when there is a new higher level section. e.g., you may have sections 1, 1.1, 1.2, and then section 2, 2.1, 2.2, but these will be incorrectly labeled as 2.3, 2.4, continuing the same subsection counter rather than resetting it.

An example of this is on my blog here: https://rjtk.github.io/posts/solving-equations-with-jacobi-iteration/ where there are sections 2.1, 2.2, 2.3, and then 4.4, 4.5 instead of 4.1, 4.2.

I don't see anything in the index.md file that would affect the numbering.

@Ice-Hazymoon
Copy link
Owner

I did find this problem before, but due to the limitations of css, there is no way to fix it at the moment. I am trying to use js to number the headers.

@RJTK
Copy link
Author

RJTK commented Mar 20, 2023

Okay got it -- I'll post here if I find a workaround. Thanks for your work on the Luna theme!

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