Front page: set the featured cards' grid by hand, columns and a size per card (migration 073)

Front page editor: Featured Content > Columns (2, 3 or 4 across on a
wide screen) and a Size on each card (normal, wide, tall, large).
Blank keeps today's layout: 3 across, the first of three or more
large. Regions and the Community blog stay automatic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aidan Dona 2026-10-07 17:24:10 -05:00
parent 910aef78b5
commit 31d9f78120
11 changed files with 130 additions and 23 deletions

View file

@ -163,6 +163,24 @@ export const frontPage = {
},
],
},
{
legend: "Featured Content",
note: "The cards themselves are under Featured cards below, each with its own Size.",
fields: [
{
path: "featured_columns",
label: "Columns",
widget: "select",
options: [
["2", "2 across"],
["3", "3 across"],
["4", "4 across"],
],
blankLabel: "Default: 3 across",
help: "On a wide screen. Tablets show 2, phones 1",
},
],
},
],
children: [
@ -222,7 +240,25 @@ export const frontPage = {
{ path: "note", label: "Note", full: true },
],
},
featuredCardsChild,
{
...featuredCardsChild,
fields: [
...featuredCardsChild.fields,
{
path: "size",
label: "Size",
widget: "select",
options: [
["normal", "Normal: one cell"],
["wide", "Wide: two columns"],
["tall", "Tall: two rows"],
["large", "Large: two columns, two rows"],
],
blankLabel: "Default: automatic (the first of three or more is large)",
help: "On a wide screen. Phones show one card per row",
},
],
},
{
key: "paths",
label: "Connect Nav",