Yoast SEO 开发者文档

title: "Comment" post_status: publish comment_status: open taxonomy: category: - yoast-developer post_tag: - Pieces - Schema - Features


import YoastSchemaExample from '../../../../src/components/YoastSchemaExample';

描述一条评论。通常在 ArticleWebPage 的上下文中使用。

触发条件

当其他节点需要时(例如,当 Article 包含 comments 时),应作为顶级节点添加到图谱中。

必需属性

一个有效的 Comment 必须包含以下属性。

失败场景

如果任何必需字段缺失或无效,则不应输出该节点。

可选属性

在可用且有效时应添加以下属性:

示例

最低标准

{{ "@context": "https://schema.org", "@graph": [ { "@type": "Comment", "@id": "https://www.example.com/#/schema/Comment/abc123", "about": { "@id": "https://www.example.com/blog/example-article/" }, "text": "Example comment content", "author": { "@id": "https://www.example.com/#/schema/Person/abc123" } } ] }}