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
Navigation indexes are not rendered correctly on the Blog index from the second page onwards #5972
Comments
I guess I have the same error? I thought it was because I set It's hard for me to describe it better so I'm attaching a minimal reproduction:
mkdocs.yml: theme:
name: material
features:
- navigation.indexes
plugins:
#- info
- blog
- tags:
tags_extra_files:
blog/subset.md:
- mytag
nav:
- Page: index.md
- Blog:
- blog/index.md
- Subset page: blog/subset.md
- Tags: tags.md
extra:
tags:
My tag: mytag In addition, I think I have located the place in the code where the bug takes place (this is from
|
Thanks to both of you for the reproductions – we'll look into it asap! |
FYI this also affects non-blog sites. |
Fixed in 433c137. Paginated views did not correctly check if the base view is an index page or not. Now, if the view is an index page (i.e. is called @smokedlinq I'm not sure where or how this happens for non-blog sites, as the issue reported is exclusive to the blog plugin. Please open a new issue with a minimal reproduction, so we can look into it. |
@vedranmiletic if this does not solve the problem for the tags plugin, please create a new issue. |
@squidfunk thanks, it seems to work correctly now, both for tags page and blog index pages after the first one. |
Released as part of 9.4.2. |
Context
No response
Bug description
When using
blog
plugin withnavigation.indexes
feature, only the first page of the Blog index has the correctly rendered navigation. Other pages of the Blog index are rendered as if the feature is not enabled.Interestingly enough, this happens only when there is at least three pages of posts in the Blog index.
Blog archive is affected the same way. I haven't checked if categories are affected since we don't use them.
Additionally, if the
tags
plugin is enabled, the Tags page will exhibit the same behavior regarding the rendering of the Blog index in the navigation. I have not included this in the minimal example on purpose to keep it minimal, but it can be observed on our group website. I can prepare a less minimal example if needed.Related links
Reproduction
9.2.8-navigation.zip
Steps to reproduce
mkdocs serve
navigation.indexes
feature enabledBrowser
No response
Before submitting
The text was updated successfully, but these errors were encountered: