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
External Nav Links Not Showing Without Pages #1020
Comments
@OldManUmby Thanks for reporting this bug! It seems that it appears in all the pre-releases of v0.4.0, as well as in the current HEAD (which is what you get by using the unpinned I'll submit a PR to fix the bug, and add a regression test for the fix. |
Fix just-the-docs#1020 - Move the display of nav external links from `_includes/nav.html` to `_layouts/default.html`. - Replace ` unless include.key` by `if site.nav_external_links`. - Wrap the body of `if site.nav_external_links` in `<ul class="nav-list">…</ul>`. To test this PR: 1. Add to `_config.yml`: ```yaml defaults: - scope: {path: ""} values: {nav_exclude: true} ``` 2. Check that the only link to appear in the nav panel is external.
@OldManUmby if you'd like to test the fix in #1021, please try using: remote_theme: pdmosses/just-the-docs@fix-external-links-without-pages (If your site is using The regression test for the fix is at https://just-the-docs.github.io/just-the-docs-tests/navigation/external-links/. It's currently marked ❌ to show that it's a bug in v0.4.0.rc3. |
Seem to be working, THX! |
Fix #1020 - Move the display of nav external links from `_includes/nav.html` to `_layouts/default.html`. - Replace ` unless include.key` by `if site.nav_external_links`. - Wrap the body of `if site.nav_external_links` in `<ul class="nav-list">…</ul>`. To test this PR: 1. Add to `_config.yml`: ```yaml defaults: - scope: {path: ""} values: {nav_exclude: true} ``` 2. Check that the only link to appear in the nav panel is external. Co-authored-by: Matt Wang <matt@matthewwang.me>
Hey @OldManUmby - just merged this into |
Describe the bug
External Navigation Links are not showing unless there are regular page links in the navigation first.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
See above.
The text was updated successfully, but these errors were encountered: