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

Fix nested index pages not showing in navigation #1319

Merged
merged 4 commits into from
Mar 17, 2023

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Mar 17, 2023

Adds a check in the navigation data factory so that a page like _pages/posts/index.md is considered internally as _pages/posts.md, as I think that closest matches the served site. This means this case is excluded from the default "hidden" setting for nested pages, but I think this better follows the principle of least astonishment since the page does not appear to be nested the same way, from a user's perspective. Fixes #1318

@caendesilva caendesilva linked an issue Mar 17, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #1319 (2b59fd0) into master (42d03b8) will not change coverage.
The diff coverage is 100.00%.

@@              Coverage Diff              @@
##              master     #1319     +/-   ##
=============================================
  Coverage     100.00%   100.00%             
- Complexity      1328      2658   +1330     
=============================================
  Files            152       304    +152     
  Lines           3470      6942   +3472     
=============================================
+ Hits            3470      6942   +3472     
Impacted Files Coverage Δ
.../src/Framework/Factories/NavigationDataFactory.php 100.00% <100.00%> (ø)

... and 152 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@caendesilva caendesilva changed the title Fix nested index pages not showing in navigation when Fix nested index pages not showing in navigation Mar 17, 2023
caendesilva added a commit to caendesilva/hyde-large-example-site that referenced this pull request Mar 17, 2023
@caendesilva caendesilva marked this pull request as ready for review March 17, 2023 20:33
@caendesilva caendesilva merged commit 481eda1 into master Mar 17, 2023
@caendesilva caendesilva deleted the fix-nested-index-pages-not-showing-in-navigation branch March 17, 2023 20:34
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

Successfully merging this pull request may close these issues.

Nested index pages not showing in navigation
2 participants