| @@ -1,0 +1,77 @@ | ||
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "jetpack/top-posts", | |
| 5 | + "title": "Top Posts & Pages", | |
| 6 | + "description": "Display your most popular content.", | |
| 7 | + "keywords": [ | |
| 8 | + "ranking", | |
| 9 | + "views", | |
| 10 | + "trending", | |
| 11 | + "popular" | |
| 12 | + ], | |
| 13 | + "version": "1.0", | |
| 14 | + "textdomain": "jetpack", | |
| 15 | + "category": "embed", | |
| 16 | + "icon": "<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px'><rect fill='none' height='24' width='24'/><path d='M19,5h-2V3H7v2H5C3.9,5,3,5.9,3,7v1c0,2.55,1.92,4.63,4.39,4.94c0.63,1.5,1.98,2.63,3.61,2.96V19H7v2h10v-2h-4v-3.1 c1.63-0.33,2.98-1.46,3.61-2.96C19.08,12.63,21,10.55,21,8V7C21,5.9,20.1,5,19,5z M5,8V7h2v3.82C5.84,10.4,5,9.3,5,8z M19,8 c0,1.3-0.84,2.4-2,2.82V7h2V8z'/></svg>", | |
| 17 | + "supports": { | |
| 18 | + "align": [ | |
| 19 | + "wide", | |
| 20 | + "full" | |
| 21 | + ], | |
| 22 | + "html": false, | |
| 23 | + "multiple": true, | |
| 24 | + "reusable": true, | |
| 25 | + "color": { | |
| 26 | + "gradients": true, | |
| 27 | + "link": true | |
| 28 | + }, | |
| 29 | + "spacing": { | |
| 30 | + "margin": true, | |
| 31 | + "padding": true | |
| 32 | + }, | |
| 33 | + "typography": { | |
| 34 | + "__experimentalFontFamily": true, | |
| 35 | + "fontSize": true, | |
| 36 | + "lineHeight": true | |
| 37 | + } | |
| 38 | + }, | |
| 39 | + "attributes": { | |
| 40 | + "layout": { | |
| 41 | + "type": "string", | |
| 42 | + "default": "grid" | |
| 43 | + }, | |
| 44 | + "displayAuthor": { | |
| 45 | + "type": "boolean", | |
| 46 | + "default": true | |
| 47 | + }, | |
| 48 | + "displayDate": { | |
| 49 | + "type": "boolean", | |
| 50 | + "default": true | |
| 51 | + }, | |
| 52 | + "displayThumbnail": { | |
| 53 | + "type": "boolean", | |
| 54 | + "default": true | |
| 55 | + }, | |
| 56 | + "displayContext": { | |
| 57 | + "type": "boolean", | |
| 58 | + "default": false | |
| 59 | + }, | |
| 60 | + "period": { | |
| 61 | + "type": "string", | |
| 62 | + "default": "7" | |
| 63 | + }, | |
| 64 | + "postsToShow": { | |
| 65 | + "type": "number", | |
| 66 | + "default": 3 | |
| 67 | + }, | |
| 68 | + "postTypes": { | |
| 69 | + "type": "object", | |
| 70 | + "default": { | |
| 71 | + "post": true, | |
| 72 | + "page": true | |
| 73 | + } | |
| 74 | + } | |
| 75 | + }, | |
| 76 | + "editorScript": "jetpack-blocks-editor" | |
| 77 | +} | |