包含用于显示评论的块元素,如标题、日期、作者、头像等。
块关系
父级块(直接):
– core/comments
属性
通过 block.json 中的 attributes 属性定义。
此块没有自定义属性。
支持功能
通过 block.json 中的 supports 属性定义。
anchor:truealign:truehtml:falsereusable:falsespacing:margin:truepadding:true
typography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
上下文
通过 block.json 中的 usesContext 和 providesContext 属性定义。
使用的上下文:
postId
块标记
这是一个 混合块。它保存静态标记,服务器在渲染期间可能会对其进行增强。
<!-- wp:comment-template /-->
来源
- block.json (参考)
- 源目录 — 浏览
edit和save源文件、index.php等。