| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/post-meta", |
| 5 |
"title": "Post Meta Bar", |
| 6 |
"description": "A configurable post metadata row: author, date, reading time, categories, tags, and comment count.", |
| 7 |
"icon": "info", |
| 8 |
"category": "bkbg-blog", |
| 9 |
"keywords": [ |
| 10 |
"meta", |
| 11 |
"author", |
| 12 |
"date", |
| 13 |
"categories", |
| 14 |
"tags", |
| 15 |
"reading time", |
| 16 |
"post info" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-post-meta-editor", |
| 20 |
"style": "bkbg-post-meta-style", |
| 21 |
"viewScript": "bkbg-post-meta-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"align": [ |
| 25 |
"wide", |
| 26 |
"full" |
| 27 |
] |
| 28 |
}, |
| 29 |
"attributes": { |
| 30 |
"layout": { |
| 31 |
"type": "string", |
| 32 |
"default": "horizontal" |
| 33 |
}, |
| 34 |
"separator": { |
| 35 |
"type": "string", |
| 36 |
"default": "•" |
| 37 |
}, |
| 38 |
"customSeparator": { |
| 39 |
"type": "string", |
| 40 |
"default": "" |
| 41 |
}, |
| 42 |
"showAvatar": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"showAuthor": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"showDate": { |
| 51 |
"type": "boolean", |
| 52 |
"default": true |
| 53 |
}, |
| 54 |
"showReadingTime": { |
| 55 |
"type": "boolean", |
| 56 |
"default": true |
| 57 |
}, |
| 58 |
"showCategories": { |
| 59 |
"type": "boolean", |
| 60 |
"default": true |
| 61 |
}, |
| 62 |
"showTags": { |
| 63 |
"type": "boolean", |
| 64 |
"default": false |
| 65 |
}, |
| 66 |
"showComments": { |
| 67 |
"type": "boolean", |
| 68 |
"default": true |
| 69 |
}, |
| 70 |
"itemOrder": { |
| 71 |
"type": "array", |
| 72 |
"default": [ |
| 73 |
"avatar", |
| 74 |
"author", |
| 75 |
"date", |
| 76 |
"readingTime", |
| 77 |
"categories", |
| 78 |
"tags", |
| 79 |
"comments" |
| 80 |
] |
| 81 |
}, |
| 82 |
"authorLabel": { |
| 83 |
"type": "string", |
| 84 |
"default": "By" |
| 85 |
}, |
| 86 |
"authorName": { |
| 87 |
"type": "string", |
| 88 |
"default": "Jane Doe" |
| 89 |
}, |
| 90 |
"authorUrl": { |
| 91 |
"type": "string", |
| 92 |
"default": "#" |
| 93 |
}, |
| 94 |
"authorAvatarUrl": { |
| 95 |
"type": "string", |
| 96 |
"default": "" |
| 97 |
}, |
| 98 |
"dateLabel": { |
| 99 |
"type": "string", |
| 100 |
"default": "� |
| 101 |
" |
| 102 |
}, |
| 103 |
"dateLabelType": { |
| 104 |
"type": "string", |
| 105 |
"default": "custom-char" |
| 106 |
}, |
| 107 |
"dateLabelDashicon": { |
| 108 |
"type": "string", |
| 109 |
"default": "calendar-alt" |
| 110 |
}, |
| 111 |
"dateLabelImageUrl": { |
| 112 |
"type": "string", |
| 113 |
"default": "" |
| 114 |
}, |
| 115 |
"dateValue": { |
| 116 |
"type": "string", |
| 117 |
"default": "June 12, 2025" |
| 118 |
}, |
| 119 |
"readingTimeLabel": { |
| 120 |
"type": "string", |
| 121 |
"default": "⏱" |
| 122 |
}, |
| 123 |
"readingTimeLabelType": { |
| 124 |
"type": "string", |
| 125 |
"default": "custom-char" |
| 126 |
}, |
| 127 |
"readingTimeLabelDashicon": { |
| 128 |
"type": "string", |
| 129 |
"default": "clock" |
| 130 |
}, |
| 131 |
"readingTimeLabelImageUrl": { |
| 132 |
"type": "string", |
| 133 |
"default": "" |
| 134 |
}, |
| 135 |
"readingTimeValue": { |
| 136 |
"type": "string", |
| 137 |
"default": "5 min read" |
| 138 |
}, |
| 139 |
"categoriesLabel": { |
| 140 |
"type": "string", |
| 141 |
"default": "🏷" |
| 142 |
}, |
| 143 |
"categoriesLabelType": { |
| 144 |
"type": "string", |
| 145 |
"default": "custom-char" |
| 146 |
}, |
| 147 |
"categoriesLabelDashicon": { |
| 148 |
"type": "string", |
| 149 |
"default": "tag" |
| 150 |
}, |
| 151 |
"categoriesLabelImageUrl": { |
| 152 |
"type": "string", |
| 153 |
"default": "" |
| 154 |
}, |
| 155 |
"categories": { |
| 156 |
"type": "array", |
| 157 |
"default": [ |
| 158 |
{ |
| 159 |
"label": "Design", |
| 160 |
"url": "#" |
| 161 |
}, |
| 162 |
{ |
| 163 |
"label": "Typography", |
| 164 |
"url": "#" |
| 165 |
} |
| 166 |
] |
| 167 |
}, |
| 168 |
"tags": { |
| 169 |
"type": "array", |
| 170 |
"default": [ |
| 171 |
{ |
| 172 |
"label": "ux", |
| 173 |
"url": "#" |
| 174 |
}, |
| 175 |
{ |
| 176 |
"label": "branding", |
| 177 |
"url": "#" |
| 178 |
} |
| 179 |
] |
| 180 |
}, |
| 181 |
"commentsLabel": { |
| 182 |
"type": "string", |
| 183 |
"default": "💬" |
| 184 |
}, |
| 185 |
"commentsLabelType": { |
| 186 |
"type": "string", |
| 187 |
"default": "custom-char" |
| 188 |
}, |
| 189 |
"commentsLabelDashicon": { |
| 190 |
"type": "string", |
| 191 |
"default": "admin-comments" |
| 192 |
}, |
| 193 |
"commentsLabelImageUrl": { |
| 194 |
"type": "string", |
| 195 |
"default": "" |
| 196 |
}, |
| 197 |
"commentsCount": { |
| 198 |
"type": "string", |
| 199 |
"default": "14 comments" |
| 200 |
}, |
| 201 |
"commentsUrl": { |
| 202 |
"type": "string", |
| 203 |
"default": "#" |
| 204 |
}, |
| 205 |
"avatarSize": { |
| 206 |
"type": "number", |
| 207 |
"default": 32 |
| 208 |
}, |
| 209 |
"gap": { |
| 210 |
"type": "number", |
| 211 |
"default": 14 |
| 212 |
}, |
| 213 |
"paddingV": { |
| 214 |
"type": "number", |
| 215 |
"default": 0 |
| 216 |
}, |
| 217 |
"paddingH": { |
| 218 |
"type": "number", |
| 219 |
"default": 0 |
| 220 |
}, |
| 221 |
"borderRadius": { |
| 222 |
"type": "number", |
| 223 |
"default": 0 |
| 224 |
}, |
| 225 |
"tagPaddingV": { |
| 226 |
"type": "number", |
| 227 |
"default": 2 |
| 228 |
}, |
| 229 |
"tagPaddingH": { |
| 230 |
"type": "number", |
| 231 |
"default": 8 |
| 232 |
}, |
| 233 |
"tagRadius": { |
| 234 |
"type": "number", |
| 235 |
"default": 50 |
| 236 |
}, |
| 237 |
"textColor": { |
| 238 |
"type": "string", |
| 239 |
"default": "#64748b" |
| 240 |
}, |
| 241 |
"linkColor": { |
| 242 |
"type": "string", |
| 243 |
"default": "#6c3fb5" |
| 244 |
}, |
| 245 |
"linkColorHover": { |
| 246 |
"type": "string", |
| 247 |
"default": "#4f2d99" |
| 248 |
}, |
| 249 |
"separatorColor": { |
| 250 |
"type": "string", |
| 251 |
"default": "#cbd5e1" |
| 252 |
}, |
| 253 |
"bgColor": { |
| 254 |
"type": "string", |
| 255 |
"default": "transparent" |
| 256 |
}, |
| 257 |
"avatarBorderColor": { |
| 258 |
"type": "string", |
| 259 |
"default": "#e2e8f0" |
| 260 |
}, |
| 261 |
"tagBg": { |
| 262 |
"type": "string", |
| 263 |
"default": "#f1f5f9" |
| 264 |
}, |
| 265 |
"tagColor": { |
| 266 |
"type": "string", |
| 267 |
"default": "#475569" |
| 268 |
}, |
| 269 |
"textTypo": { "type": "object", "default": {} } |
| 270 |
} |
| 271 |
} |
| 272 |
|