build/scripts/block-library/latest-posts
block.json
2.5 KB
8 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/latest-posts/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/latest-posts", |
| 5 | "title": "Latest Posts", |
| 6 | "category": "widgets", |
| 7 | "description": "Display a list of your most recent posts.", |
| 8 | "keywords": [ "recent posts" ], |
| 9 | "textdomain": "default", |
| 10 | "attributes": { |
| 11 | "categories": { |
| 12 | "type": "array", |
| 13 | "items": { |
| 14 | "type": "object" |
| 15 | } |
| 16 | }, |
| 17 | "selectedAuthor": { |
| 18 | "type": "number" |
| 19 | }, |
| 20 | "postsToShow": { |
| 21 | "type": "number", |
| 22 | "default": 5 |
| 23 | }, |
| 24 | "displayPostContent": { |
| 25 | "type": "boolean", |
| 26 | "default": false |
| 27 | }, |
| 28 | "displayPostContentRadio": { |
| 29 | "type": "string", |
| 30 | "default": "excerpt" |
| 31 | }, |
| 32 | "excerptLength": { |
| 33 | "type": "number", |
| 34 | "default": 55 |
| 35 | }, |
| 36 | "displayAuthor": { |
| 37 | "type": "boolean", |
| 38 | "default": false |
| 39 | }, |
| 40 | "displayPostDate": { |
| 41 | "type": "boolean", |
| 42 | "default": false |
| 43 | }, |
| 44 | "postLayout": { |
| 45 | "type": "string", |
| 46 | "default": "list" |
| 47 | }, |
| 48 | "columns": { |
| 49 | "type": "number", |
| 50 | "default": 3 |
| 51 | }, |
| 52 | "order": { |
| 53 | "type": "string", |
| 54 | "default": "desc" |
| 55 | }, |
| 56 | "orderBy": { |
| 57 | "type": "string", |
| 58 | "default": "date" |
| 59 | }, |
| 60 | "displayFeaturedImage": { |
| 61 | "type": "boolean", |
| 62 | "default": false |
| 63 | }, |
| 64 | "featuredImageAlign": { |
| 65 | "type": "string", |
| 66 | "enum": [ "left", "center", "right" ] |
| 67 | }, |
| 68 | "featuredImageSizeSlug": { |
| 69 | "type": "string", |
| 70 | "default": "thumbnail" |
| 71 | }, |
| 72 | "featuredImageSizeWidth": { |
| 73 | "type": "number", |
| 74 | "default": null |
| 75 | }, |
| 76 | "featuredImageSizeHeight": { |
| 77 | "type": "number", |
| 78 | "default": null |
| 79 | }, |
| 80 | "addLinkToFeaturedImage": { |
| 81 | "type": "boolean", |
| 82 | "default": false |
| 83 | } |
| 84 | }, |
| 85 | "supports": { |
| 86 | "anchor": true, |
| 87 | "align": true, |
| 88 | "html": false, |
| 89 | "color": { |
| 90 | "gradients": true, |
| 91 | "link": true, |
| 92 | "__experimentalDefaultControls": { |
| 93 | "background": true, |
| 94 | "text": true, |
| 95 | "link": true |
| 96 | } |
| 97 | }, |
| 98 | "spacing": { |
| 99 | "margin": true, |
| 100 | "padding": true |
| 101 | }, |
| 102 | "typography": { |
| 103 | "fontSize": true, |
| 104 | "lineHeight": true, |
| 105 | "__experimentalFontFamily": true, |
| 106 | "__experimentalFontWeight": true, |
| 107 | "__experimentalFontStyle": true, |
| 108 | "__experimentalTextTransform": true, |
| 109 | "__experimentalTextDecoration": true, |
| 110 | "__experimentalLetterSpacing": true, |
| 111 | "__experimentalDefaultControls": { |
| 112 | "fontSize": true |
| 113 | } |
| 114 | }, |
| 115 | "__experimentalBorder": { |
| 116 | "radius": true, |
| 117 | "color": true, |
| 118 | "width": true, |
| 119 | "style": true, |
| 120 | "__experimentalDefaultControls": { |
| 121 | "radius": true, |
| 122 | "color": true, |
| 123 | "width": true, |
| 124 | "style": true |
| 125 | } |
| 126 | }, |
| 127 | "interactivity": { |
| 128 | "clientNavigation": true |
| 129 | } |
| 130 | }, |
| 131 | "editorStyle": "wp-block-latest-posts-editor", |
| 132 | "style": "wp-block-latest-posts" |
| 133 | } |
| 134 |