| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/article-header", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Article Header", |
| 7 |
"category": "bkbg-blog", |
| 8 |
"icon": "format-aside", |
| 9 |
"description": "Rich editorial-style article/blog post header with category badge, headline, subheadline, author meta bar, and optional hero image.", |
| 10 |
"keywords": [ |
| 11 |
"article", |
| 12 |
"header", |
| 13 |
"blog", |
| 14 |
"post", |
| 15 |
"author", |
| 16 |
"hero", |
| 17 |
"editorial" |
| 18 |
], |
| 19 |
"textdomain": "blockenberg", |
| 20 |
"editorScript": "bkbg-article-header-editor", |
| 21 |
"style": "bkbg-article-header-style", |
| 22 |
"viewScript": "bkbg-article-header-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"align": [ |
| 26 |
"wide", |
| 27 |
"full" |
| 28 |
] |
| 29 |
}, |
| 30 |
"attributes": { |
| 31 |
"category": { |
| 32 |
"type": "string", |
| 33 |
"default": "Design" |
| 34 |
}, |
| 35 |
"categoryColor": { |
| 36 |
"type": "string", |
| 37 |
"default": "#ffffff" |
| 38 |
}, |
| 39 |
"categoryBg": { |
| 40 |
"type": "string", |
| 41 |
"default": "#7c3aed" |
| 42 |
}, |
| 43 |
"showCategory": { |
| 44 |
"type": "boolean", |
| 45 |
"default": true |
| 46 |
}, |
| 47 |
"headline": { |
| 48 |
"type": "string", |
| 49 |
"default": "The Art of Creating Content That Resonates" |
| 50 |
}, |
| 51 |
"subheadline": { |
| 52 |
"type": "string", |
| 53 |
"default": "A deep dive into the principles behind great editorial design and timeless storytelling." |
| 54 |
}, |
| 55 |
"showSubheadline": { |
| 56 |
"type": "boolean", |
| 57 |
"default": true |
| 58 |
}, |
| 59 |
"headlineTag": { |
| 60 |
"type": "string", |
| 61 |
"default": "h1" |
| 62 |
}, |
| 63 |
"headlineSize": { |
| 64 |
"type": "integer", |
| 65 |
"default": 48 |
| 66 |
}, |
| 67 |
"authorName": { |
| 68 |
"type": "string", |
| 69 |
"default": "Jane Cooper" |
| 70 |
}, |
| 71 |
"authorRole": { |
| 72 |
"type": "string", |
| 73 |
"default": "Senior Editor" |
| 74 |
}, |
| 75 |
"authorAvatarUrl": { |
| 76 |
"type": "string", |
| 77 |
"default": "" |
| 78 |
}, |
| 79 |
"authorAvatarId": { |
| 80 |
"type": "integer", |
| 81 |
"default": 0 |
| 82 |
}, |
| 83 |
"publishDate": { |
| 84 |
"type": "string", |
| 85 |
"default": "June 12, 2025" |
| 86 |
}, |
| 87 |
"readingTime": { |
| 88 |
"type": "string", |
| 89 |
"default": "8 min read" |
| 90 |
}, |
| 91 |
"showAuthor": { |
| 92 |
"type": "boolean", |
| 93 |
"default": true |
| 94 |
}, |
| 95 |
"showDate": { |
| 96 |
"type": "boolean", |
| 97 |
"default": true |
| 98 |
}, |
| 99 |
"showReadingTime": { |
| 100 |
"type": "boolean", |
| 101 |
"default": true |
| 102 |
}, |
| 103 |
"heroImageUrl": { |
| 104 |
"type": "string", |
| 105 |
"default": "" |
| 106 |
}, |
| 107 |
"heroImageId": { |
| 108 |
"type": "integer", |
| 109 |
"default": 0 |
| 110 |
}, |
| 111 |
"heroImageAlt": { |
| 112 |
"type": "string", |
| 113 |
"default": "" |
| 114 |
}, |
| 115 |
"showHeroImage": { |
| 116 |
"type": "boolean", |
| 117 |
"default": true |
| 118 |
}, |
| 119 |
"heroRadius": { |
| 120 |
"type": "integer", |
| 121 |
"default": 12 |
| 122 |
}, |
| 123 |
"layout": { |
| 124 |
"type": "string", |
| 125 |
"default": "simple" |
| 126 |
}, |
| 127 |
"bgColor": { |
| 128 |
"type": "string", |
| 129 |
"default": "#ffffff" |
| 130 |
}, |
| 131 |
"headlineColor": { |
| 132 |
"type": "string", |
| 133 |
"default": "#111827" |
| 134 |
}, |
| 135 |
"subColor": { |
| 136 |
"type": "string", |
| 137 |
"default": "#6b7280" |
| 138 |
}, |
| 139 |
"metaColor": { |
| 140 |
"type": "string", |
| 141 |
"default": "#9ca3af" |
| 142 |
}, |
| 143 |
"dividerColor": { |
| 144 |
"type": "string", |
| 145 |
"default": "#e5e7eb" |
| 146 |
}, |
| 147 |
"subSize": { |
| 148 |
"type": "integer", |
| 149 |
"default": 20 |
| 150 |
}, |
| 151 |
"headlineTypo": { |
| 152 |
"type": "object", |
| 153 |
"default": {} |
| 154 |
}, |
| 155 |
"subTypo": { |
| 156 |
"type": "object", |
| 157 |
"default": {} |
| 158 |
}, |
| 159 |
"maxWidth": { |
| 160 |
"type": "integer", |
| 161 |
"default": 860 |
| 162 |
}, |
| 163 |
"paddingTop": { |
| 164 |
"type": "integer", |
| 165 |
"default": 64 |
| 166 |
}, |
| 167 |
"paddingBottom": { |
| 168 |
"type": "integer", |
| 169 |
"default": 48 |
| 170 |
} |
| 171 |
} |
| 172 |
} |
| 173 |
|