Yandex 从 hRecipe 页面读取的完整属性集,包括若干非开放标准的扩展属性。
常规要求
每个页面仅限一个食谱,需使用 hrecipe 根类标记,且该食谱必须是页面的主要内容。它必须完整显示并对访客可见——不得隐藏在选项卡或折叠面板中。

必需属性
fn— 菜品名称,纯文本。ingredient— 每一项配料均需单独标记,可以是文本或 HTML。嵌套属性包括:name(Yandex 扩展属性)、用于单位和数量的type和value,或者代替上述两者的自由格式数量amount。
推荐属性
instructions— 每个食谱一个;单个步骤可包含instruction(Yandex 扩展属性)。Yandex 要求标题本身(如“烹饪方法”)应置于属性之外。yield— 分量,每个食谱一个,文本值。duration— ISO 8601 格式。value-title模式可显示“一个半小时”,同时发布PT1H30M。photo和result-photo— 允许使用多张照片,位于根目录或instructions内,获取img的src。成品菜肴图片必须额外携带result-photo(Yandex 扩展属性),这是提升摘要效果最显著的单一字段。author— 文本或嵌套的 hCard,允许多个作者。nutrition— 包含 Yandex 特有的嵌套属性:calories、fat、saturatedFat、unsaturatedFat、carbohydrates、sugar、fiber、protein、cholesterol、servingSize。
更多 Yandex 扩展属性
category(菜品类型,每个食谱一个)、sub-category、cuisine-type 和 weight。
结论
在此处构成优质食谱摘要的属性中,超过一半不在 hRecipe 标准内。仅基于开放规范构建只能产生有效的标记,但效果较弱。此页面是针对 Yandex 的构建规范,而控制台验证工具是唯一能据此进行检查的工具。

How we apply this
We build recipe markup from this page rather than the open standard, because the fields that matter most here — result-photo, the nutrition breakdown, per-step instructions — are Yandex additions. It is also why we validate in Yandex’s own tool: a generic validator passes markup that omits every one of them, and the site gets an ordinary snippet while believing it did the work.
Related services