2020-06-26 09:33:47 -04:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2020-11-01 23:56:37 -05:00
|
|
|
"apiVersion": 2,
|
2020-06-26 09:33:47 -04:00
|
|
|
"name": "core/latest-posts",
|
2021-05-19 11:09:27 -04:00
|
|
|
"title": "Latest Posts",
|
2020-06-26 09:33:47 -04:00
|
|
|
"category": "widgets",
|
2021-05-19 11:09:27 -04:00
|
|
|
"description": "Display a list of your most recent posts.",
|
|
|
|
"keywords": [ "recent posts" ],
|
|
|
|
"textdomain": "default",
|
2020-06-26 09:33:47 -04:00
|
|
|
"attributes": {
|
|
|
|
"categories": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"selectedAuthor": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"postsToShow": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 5
|
|
|
|
},
|
|
|
|
"displayPostContent": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"displayPostContentRadio": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "excerpt"
|
|
|
|
},
|
|
|
|
"excerptLength": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 55
|
|
|
|
},
|
|
|
|
"displayAuthor": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"displayPostDate": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"postLayout": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "list"
|
|
|
|
},
|
|
|
|
"columns": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 3
|
|
|
|
},
|
|
|
|
"order": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "desc"
|
|
|
|
},
|
|
|
|
"orderBy": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "date"
|
|
|
|
},
|
|
|
|
"displayFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"featuredImageAlign": {
|
|
|
|
"type": "string",
|
2021-05-07 07:48:27 -04:00
|
|
|
"enum": [ "left", "center", "right" ]
|
2020-06-26 09:33:47 -04:00
|
|
|
},
|
|
|
|
"featuredImageSizeSlug": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "thumbnail"
|
|
|
|
},
|
|
|
|
"featuredImageSizeWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"featuredImageSizeHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
2020-10-13 09:10:30 -04:00
|
|
|
},
|
|
|
|
"addLinkToFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-06-26 09:33:47 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
|
|
|
"align": true,
|
2022-09-20 11:43:29 -04:00
|
|
|
"html": false,
|
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
|
|
|
}
|
2021-01-27 21:04:13 -05:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-latest-posts-editor",
|
|
|
|
"style": "wp-block-latest-posts"
|
2020-06-26 09:33:47 -04:00
|
|
|
}
|