-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replaces the dynamic Wordpress navigation, derived from the categories taxonomy, with a static navigation object. Until we find a more permanent place and editing UI for the navigation, I opted for a simple JS object, which gives us type checking for free. I don't expect this data structure to evolve regularly in the near future (it hasn't over the past few years), so it is probably not worth complexifying the setup with a JSON-based alternative and training authors to update it. This will likely remain a developer task. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Expanded the site navigation structure to include a detailed hierarchical representation of categories and subcategories. - **Bug Fixes** - Adjusted site navigation handling to account for cases where subcategories may be undefined or null. - **Refactor** - Streamlined site rendering and database interactions by utilizing a static navigation model. - Removed unnecessary properties from content graph interfaces to align with updated site structure. - **Chores** - Cleaned up unused functions and imports related to site navigation and content retrieval. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
5 changed files
with
862 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.