Blocks: Shown on the page, in the presentation, or both

- present_show (099) replaces present_hide: only on the page, or only
  in the presentation, kept off the page and its contents list
- Blocks with the old Leave out ticked become Only on the page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-11-12 04:59:11 -06:00
parent 2282bee23c
commit ae06cd2b4f
8 changed files with 52 additions and 14 deletions

View file

@ -92,7 +92,10 @@ export default function EventDetail() {
const accent = event.color || BRAND
const groups = peopleGroups(event.people, accent)
// Two headings or more make a list worth showing, as on a post.
const contents = event.show_contents ? headingAnchors(event.blocks).entries : []
// Not a heading shown only in the presentation (099).
const contents = event.show_contents
? headingAnchors(event.blocks.filter((block) => !block.present?.only)).entries
: []
const withContents = contents.length >= 2
const sections: ShellSection[] = [