Projects were hardcoded h3 elements in a pattern: no URL, no feed, no search, uneditable without touching PHP. They follow the podcast model now, a chrnx_topic term plus posts. Adds a chrnx_project_featured flag with an editor toggle so the stage lists chosen projects first and fills with the most recent. Sticky was already spoken for by the home featured stories, so the choice needed its own signal. journal-stream gains a pinned topic attribute, reusing the archive filter, pagination and empty state it already had. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
17 lines
533 B
JSON
17 lines
533 B
JSON
{
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
"apiVersion": 3,
|
|
"name": "chrnx/selected-work",
|
|
"version": "0.2.0",
|
|
"title": "Selected Work",
|
|
"category": "theme",
|
|
"description": "Hand-picked projects first, then the most recent ones.",
|
|
"textdomain": "chrnx",
|
|
"attributes": {
|
|
"limit": { "type": "integer", "default": 3, "minimum": 1, "maximum": 12 },
|
|
"headingLevel": { "type": "integer", "default": 3, "enum": [2, 3, 4, 5, 6] }
|
|
},
|
|
"supports": { "html": false },
|
|
"render": "file:./render.php"
|
|
}
|