Add NavItem struct and discover_nav() function to scan content directory and automatically build navigation from: - Top-level .md files (pages) - Directories with _index.md (sections) Navigation is sorted by frontmatter weight, then alphabetically. Custom nav_label field allows overriding title in nav menu. Includes 5 unit tests covering page/section discovery, weight ordering, and nav_label support.
1.1 KiB
1.1 KiB