Content blocks: Shown in the page, the card only, or both (migration 071)
A card block also showed on the record's page (the pages printed the card's paragraphs above the body), which the editor didn't say. Shown in now offers The page, The card only, and The card and the page. Every existing card block becomes both, so nothing on the site moves; the pages no longer print card paragraphs, and a both block comes with the page's blocks, in its place in the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b55b088e16
commit
8d6bb8c2b8
10 changed files with 103 additions and 32 deletions
|
|
@ -363,8 +363,10 @@ export const blocksChild = {
|
|||
widget: "select",
|
||||
options: [
|
||||
["body", "The page"],
|
||||
["card", "The card (paragraphs only)"],
|
||||
["card", "The card only (paragraphs only)"],
|
||||
["both", "The card and the page"],
|
||||
],
|
||||
help: "The card is the record's card in lists and carousels, and takes paragraphs only.",
|
||||
},
|
||||
{
|
||||
path: "type",
|
||||
|
|
|
|||
|
|
@ -108,12 +108,6 @@ export default function EventDetail() {
|
|||
/>
|
||||
)}
|
||||
|
||||
{event.description.map((paragraph, index) => (
|
||||
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
|
||||
{paragraph}
|
||||
</p>
|
||||
))}
|
||||
|
||||
<div className="max-w-3xl">
|
||||
<ContentBlocks blocks={event.blocks} accent={accent} presentAt={`/events/${encodeURIComponent(event.id)}/present`} />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -84,12 +84,6 @@ export default function OrganizationDetail() {
|
|||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||
<Facts org={org} accent={accent} />
|
||||
|
||||
{org.description.map((paragraph, index) => (
|
||||
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
|
||||
{paragraph}
|
||||
</p>
|
||||
))}
|
||||
|
||||
<div className="max-w-3xl">
|
||||
<ContentBlocks blocks={org.blocks} accent={accent} />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ export default function PersonDetail() {
|
|||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||
<Facts person={person} accent={accent} />
|
||||
|
||||
{[...person.bio, ...person.description].map((paragraph, index) => (
|
||||
{person.bio.map((paragraph, index) => (
|
||||
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
|
||||
{paragraph}
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export default function TeamDetail() {
|
|||
|
||||
const accent = team.color || BRAND
|
||||
const hasAbout =
|
||||
team.description.length > 0 || team.blocks.length > 0 || team.links.length > 0
|
||||
team.blocks.length > 0 || team.links.length > 0
|
||||
|
||||
const sections: any[] = []
|
||||
|
||||
|
|
@ -57,12 +57,6 @@ export default function TeamDetail() {
|
|||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||
<Facts orgId={team.org.id} orgKind={team.org.kind} orgName={team.org.name} accent={accent} />
|
||||
|
||||
{team.description.map((paragraph, index) => (
|
||||
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
|
||||
{paragraph}
|
||||
</p>
|
||||
))}
|
||||
|
||||
<div className="max-w-3xl">
|
||||
<ContentBlocks blocks={team.blocks} accent={accent} />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue