显示您的文章的日期归档。
属性
通过 attributes 属性在 block.json 中定义。
| 属性 | 类型 | 默认值 | 描述 |
|---|---|---|---|
displayAsDropdown | boolean | false | — |
showLabel | boolean | true | — |
showPostCounts | boolean | false | — |
type | string | "monthly" | — |
支持
通过 supports 属性在 block.json 中定义。
anchor:truealign:truebackground:backgroundImage:truebackgroundSize:truegradient:true
dimensions:minHeight:true
html:falsespacing:margin:truepadding:true
typography:fontSize:truelineHeight:true
color:interactivity:clientNavigation:true
块标记
这是一个 动态块。它在服务器上渲染,不会在文章内容中保存 HTML。
在文章内容中,它存储为块注释:
<!-- wp:archives {"displayAsDropdown":false,"showPostCounts":false} /-->
来源
- block.json (参考)
- 源目录 — 浏览
edit和save源文件,index.php等。