author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/latest-posts", |
18 | 5 |
"title": "Latest Posts", |
16 | 6 |
"category": "widgets", |
18 | 7 |
"description": "Display a list of your most recent posts.", |
8 |
"keywords": [ "recent posts" ], |
|
9 |
"textdomain": "default", |
|
16 | 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", |
|
18 | 66 |
"enum": [ "left", "center", "right" ] |
16 | 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 |
|
18 | 79 |
}, |
80 |
"addLinkToFeaturedImage": { |
|
81 |
"type": "boolean", |
|
82 |
"default": false |
|
16 | 83 |
} |
84 |
}, |
|
85 |
"supports": { |
|
86 |
"align": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
87 |
"html": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
88 |
"color": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
89 |
"gradients": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
90 |
"link": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
91 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
92 |
"background": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
93 |
"text": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
94 |
"link": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
95 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
96 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
97 |
"spacing": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
98 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
99 |
"padding": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
100 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
101 |
"typography": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
102 |
"fontSize": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
103 |
"lineHeight": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
104 |
"__experimentalFontFamily": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
105 |
"__experimentalFontWeight": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
106 |
"__experimentalFontStyle": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
107 |
"__experimentalTextTransform": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
108 |
"__experimentalTextDecoration": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
109 |
"__experimentalLetterSpacing": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
110 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
111 |
"fontSize": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
112 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
113 |
}, |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
114 |
"__experimentalBorder": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
115 |
"radius": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
116 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
117 |
"width": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
118 |
"style": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
119 |
"__experimentalDefaultControls": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
120 |
"radius": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
121 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
122 |
"width": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
123 |
"style": true |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
124 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
125 |
}, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
126 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
127 |
"clientNavigation": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
128 |
} |
18 | 129 |
}, |
130 |
"editorStyle": "wp-block-latest-posts-editor", |
|
131 |
"style": "wp-block-latest-posts" |
|
16 | 132 |
} |