-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Blog: missing integrated table of contents in pagination #5715
Comments
I'm not able to reproduce the problem. The first problem is that your example is not runnable for us - it is far too big to be useful. However, I checked it on our own blog, and I'm unable to reproduce the behavior you're describing. The table of contents renders just fine on any page. For example, if I limit the number of posts to 2: If you're still experiencing the issue, please create a minimal reproduction, and we can look into it. |
I have reduced to three posts, here's the new reproducer: |
This is still not a proper reproduction. There's additional JavaScript, some wavedrom snippets that we can't run, pages that don't seem to belong to the blog and are not relevant for this problem, etc. Please remove everything that is not necessary to observe the problem. Thank you! 😊 |
Please check this one: example.zip |
Finally reproducible, thanks you! |
Okay, so this is actually tricky to fix, because the integrated table of contents will only be rendered for the currently active page. Since the paginated page is not part of the navigation, but essentially a shadow of the index page, the integrated table of contents is not rendered, This does not apply for the non-integrated table of contents which is rendered just fine. We'll address this issue as part of the refactoring which we'll be doing shortly. |
Resolved in 38b7282 – it's going to be released as part of 9.2. |
Released as part of 9.2.0. |
Still unable to work. Have you retried it? @squidfunk |
Context
No response
Bug description
A table of contents is generated for the index page, but not in pagination (
/page/2/
etc.)Related links
Reproduction
example.zip
Steps to reproduce
localhost:8000/page/2
Browser
Chrome
Before submitting
The text was updated successfully, but these errors were encountered: