cooking/lib/format.ts
Olomana (multica agent) c58e09db1d PWS-15: Capitalize tags for display
Tags render with their first letter uppercased on the recipe page, grid
cards, sidebar facet, and active-filter chips, matching categories. The
shared capitalize helper moves to lib/format.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 15:48:30 -08:00

5 lines
189 B
TypeScript

// Display formatting for frontmatter values (categories, tags). Client-safe.
export function capitalize(value: string): string {
return value.charAt(0).toUpperCase() + value.slice(1);
}