Context
In a recent change, directly linking to a blog post from the nav exhibits strange behavior. The nav link works, but that specific blog post is missing the metadata sidebar and it is excluded from the blog index.
Bug description
On my site, I link to a specific blog entry under a nav entry called Mission. This normally works fine, but in insiders 9.2.7+4.40.3 I get an error: A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site. The nav link works, and it shows the blog entry, but it is missing the blog metadata like date and author. Other posts that aren't linked in the nav show up in the blog index, but the mission.md one is missing.
Related links
Reproduction
9.2.7+insiders.4.40.3-blog-entry-in-nav-not-working.zip
Steps to reproduce
- mkdocs serve
- See the error
A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site.
- Click the
Mission nav item, note it does not have metadata
- Click the
Blog nav item, note there is no entry for the mission blog post.
- Click
continue reading and note the post called Entry has metadata.
Browser
No response
Before submitting
Context
In a recent change, directly linking to a blog post from the nav exhibits strange behavior. The nav link works, but that specific blog post is missing the metadata sidebar and it is excluded from the blog index.
Bug description
On my site, I link to a specific blog entry under a nav entry called Mission. This normally works fine, but in insiders 9.2.7+4.40.3 I get an error:
A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site.The nav link works, and it shows the blog entry, but it is missing the blog metadata like date and author. Other posts that aren't linked in the nav show up in the blog index, but themission.mdone is missing.Related links
archive_url_format: "{date}"resulted in the exclusion of files from build #5904Reproduction
9.2.7+insiders.4.40.3-blog-entry-in-nav-not-working.zip
Steps to reproduce
A reference to 'blog/posts/mission.md' is included in the 'nav' configuration, but this file is excluded from the built site.Missionnav item, note it does not have metadataBlognav item, note there is no entry for the mission blog post.continue readingand note the post called Entry has metadata.Browser
No response
Before submitting