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:
parent
910aef78b5
commit
31d9f78120
11 changed files with 130 additions and 23 deletions
|
|
@ -238,7 +238,8 @@ export function shapeSeries(row) {
|
|||
tables keep bare filenames in different public/ directories,
|
||||
and logoForKind in media.ts knows which is which. The kinds are
|
||||
the ref kinds, plus 'event-photo' and 'featured' (the
|
||||
card's own image). An unpublished
|
||||
card's own image). `size` is its shape in the grid (073), null
|
||||
for automatic. An unpublished
|
||||
record's card is dropped; an unlisted one's stays, since
|
||||
featuring it is attaching it by hand.
|
||||
───────────────────────────────────────────────────────────── */
|
||||
|
|
@ -329,6 +330,7 @@ export function loadFeaturedCardsFor(db, ownerKind, ownerIds) {
|
|||
title: row.title ?? record.title,
|
||||
blurb: row.blurb ?? record.blurb ?? null,
|
||||
image: own(row) ?? FEATURED_REFS[row.ref_kind].image(record),
|
||||
size: row.size,
|
||||
});
|
||||
} else {
|
||||
cards.push({
|
||||
|
|
@ -339,6 +341,7 @@ export function loadFeaturedCardsFor(db, ownerKind, ownerIds) {
|
|||
title: row.title,
|
||||
blurb: row.blurb,
|
||||
image: own(row),
|
||||
size: row.size,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue