Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Display custom recipe metadata (e.g. nutrition) on the recipe page

オープン
#459 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Tloxipeuhca がすでに取り組んでいます。

2026年8月24日 から。

  • #458 @Tloxipeuhca による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
frontend, web-dev

調査の方向性

この提案の実装として特定されている issue #458 から始め、変更対象となるレシピページとレシピ一覧のレンダリングのエントリポイントを調査してください。実装を YAML の例と比較し、汎用的なリスト/マッピング表示、栄養情報とファイルメタデータの特別な扱い、非表示ルール、カロリーバッジを確認してください。既存のレシピフィールドに影響を与えず、要求されたメタデータが正しく表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area: server feature request requires spec update

Problem

Cooklang's YAML frontmatter supports arbitrary custom metadata keys beyond the standard ones (servings, time, course, ...), but CookCLI's web UI only shows a handful of known fields as pills, plus flat scalar custom fields as key: value pills. There's no good way to show structured custom metadata — the most common example being nutrition facts (calories, protein, fat, ...) that many recipe collections carry per recipe.

Proposal

Any non-standard YAML key whose value is a list or a mapping should render as its own line on the recipe page, below the tags — one line per "family":

nutrition:
  kcal: 234
  proteins: 9.8
  lipids: 17.6
allergens:
  - gluten
  - tree nuts
  • Works generically for any such key with no code changes — allergens: above should just work.
  • A couple of well-known families (nutrition, and file metadata like created-by/modified-at) could get nicer treatment: matching icons, and translated field names via the existing i18n system.
  • The recipe list page could show a compact calorie badge next to the tags when nutrition is present, without cluttering the cards with the rest of the nutrition breakdown.
  • A way to hide a family or a single entry from display (e.g. a .-prefixed key) would help for metadata that's useful to keep in the file but not show on the page.

Proposed implementation

Opened as #458, which implements the above (generic rendering for any family, specific icon/i18n treatment for nutrition and file/meta, .-prefix hiding, kcal badge on the list page).

主要言語
Rust
スター
1.4k
フォーク
120
平均マージ
1日 22時間
マージ済み PR(30日)
128

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cooklang/cookcli のほかの issue

cooklang/cookcli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。