Commit c1cb8ab
refactor(metadata): centralize metadata generation with new templates and improved path handling
- Add generateStaticPageMetadata() for generic pages
- Improve path normalization in buildCanonicalUrl() and buildLanguageAlternates()
- Update all generators to use createPageMetadata() template
- Move FaqItem type definition to generated metadata file
- Fix canonical URL building to use alternates.canonical throughout
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 263c98a commit c1cb8ab
File tree
5 files changed
+192
-66
lines changed- scripts/generate
- src/lib
- generated
- metadata
5 files changed
+192
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments