fix(renderer): stop listing the recipe language among custom byline metadata #265

Merged
abiwab merged 1 commit from fix/renderer-frontmatter-known-keys into main 2026-11-26 10:27:26 +01:00
Owner

The HTML recipe view lists every frontmatter key it does not know as custom metadata in the byline. language was missing from its known keys, so a recipe with language: fr showed a "language: fr" entry, although the page's lang attribute already carries it.

  • packages/renderer/src/views/recipe/html.ts: language joins knownKeys.
  • packages/renderer/tests/byline-known-keys.test.ts: language no longer appears in the byline (HTML and print), an unknown key (difficulty) still does.
  • Patch changeset on @gram-lang/renderer.

lastUpdated is deliberately left as it is: the byline is the only place it appears today. It gets a translated display in the frontmatter key registry PR on dev/1.6, which will also derive knownKeys from that registry.

The HTML recipe view lists every frontmatter key it does not know as custom metadata in the byline. `language` was missing from its known keys, so a recipe with `language: fr` showed a "language: fr" entry, although the page's `lang` attribute already carries it. - `packages/renderer/src/views/recipe/html.ts`: `language` joins `knownKeys`. - `packages/renderer/tests/byline-known-keys.test.ts`: `language` no longer appears in the byline (HTML and print), an unknown key (`difficulty`) still does. - Patch changeset on `@gram-lang/renderer`. `lastUpdated` is deliberately left as it is: the byline is the only place it appears today. It gets a translated display in the frontmatter key registry PR on `dev/1.6`, which will also derive `knownKeys` from that registry.
fix(renderer): stop listing the recipe language among custom byline metadata
All checks were successful
CI / Build & Test (pull_request) Successful in 5m52s
3f20d76d39
abiwab merged commit 01e4e83da1 into main 2026-11-26 10:27:26 +01:00
abiwab deleted branch fix/renderer-frontmatter-known-keys 2026-11-26 10:27:26 +01:00
Sign in to join this conversation.
No description provided.