2020-06-26 15:33:47 +02:00
|
|
|
{
|
2020-11-02 05:56:37 +01:00
|
|
|
"apiVersion": 2,
|
2020-06-26 15:33:47 +02:00
|
|
|
"name": "core/latest-posts",
|
2021-05-19 17:09:27 +02:00
|
|
|
"title": "Latest Posts",
|
2020-06-26 15:33:47 +02:00
|
|
|
"category": "widgets",
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Display a list of your most recent posts.",
|
|
|
|
"keywords": [ "recent posts" ],
|
|
|
|
"textdomain": "default",
|
2020-06-26 15:33:47 +02: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 13:48:27 +02:00
|
|
|
"enum": [ "left", "center", "right" ]
|
2020-06-26 15:33:47 +02:00
|
|
|
},
|
|
|
|
"featuredImageSizeSlug": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "thumbnail"
|
|
|
|
},
|
|
|
|
"featuredImageSizeWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
|
|
|
},
|
|
|
|
"featuredImageSizeHeight": {
|
|
|
|
"type": "number",
|
|
|
|
"default": null
|
2020-10-13 15:10:30 +02:00
|
|
|
},
|
|
|
|
"addLinkToFeaturedImage": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
|
|
|
"align": true,
|
|
|
|
"html": false
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-latest-posts-editor",
|
|
|
|
"style": "wp-block-latest-posts"
|
2020-06-26 15:33:47 +02:00
|
|
|
}
|