mirror of
https://github.com/runyanjake/cooking.git
synced 2026-11-13 00:24:51 -08:00
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>
5 lines
189 B
TypeScript
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);
|
|
}
|