For the review, please scroll down to the bottom to inspect the layout/theme changes in the last three files. The rest of the files/changes are essentially the same, with only the paths being altered.
I will break this into two commits:
documentation/themes: Refactor for Hugo 0.123.X compatibility - Simplify path extraction logic in menu partial to match only with the main document/book, enhancing maintainability and future Hugo compatibility. - Optimize articles and books directory listings by leveraging Hugo's built-in .Sections to fetch content, replacing manual slice construction and sorting logic. This approach streamlines the code and is more idiomatic with recent Hugo versions. - These changes are part of necessary adjustments for the upgrade to Hugo version 0.123.X, ensuring our theme's compatibility and taking advantage of Hugo's latest features and performance improvements.
and
documentation: Adjust path variables for Hugo 0.123.X upgrade These adjustments ensure menu and navigation will work fine with the recent changes.
I need additional help with testing and more eyes to verify if there are any
other parts that broke after the upgrade.
So far, I've fixed three things:
- The build process
- The listing of books and articles
- The books menu