{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A long read in one reading column, or beside a table of contents that links to the sections.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/article-body.json\n    A long read: sections with headings, text and an optional pull quote, in one reading column or beside a table of contents that links to each section. Axes: layout (column, toc), quotes (show, hide), tone. Highlighting the section being read is a port contract.\n    Props (p): id, title, sections, empty, tocTitle, layout, quotes, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_sections = (p.sections ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_tocTitle = (p.tocTitle ?? null) -%}\n{%- set v_layout = (p.layout ?? 'column') -%}\n{%- set v_quotes = (p.quotes ?? 'show') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_13 -%}\n  {%- if og_t(og_eq(og_len(v_sections), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'file-text', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_12 -%}\n      {%- if og_t(og_eq(v_layout, 'toc')) %}\n        {%- set c_6 -%}\n          {%- set c_5 -%}\n            {%- set c_1 -%}\n              {{ og_text(v_tocTitle) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_1}, with_context = false) }}\n            {%- set c_4 -%}\n              {%- for v_s in og_l(v_sections) %}\n                {%- set c_3 -%}\n                  {%- set c_2 -%}\n                    {{ og_text(og_get(v_s, ['title'])) }}\n                  {%- endset -%}\n                  {{ include('compose/Link.html.twig', {'href': og_url(og_s(og_tpl('#{0}-{1}', [v_id, og_get(v_s, ['id'])]))), 'variant': 'default', 'class': 'text-sm text-muted-foreground', 'attrs': og_attrs(['data-slot', 'toc-link']), 'children': c_2}, with_context = false) }}\n                {%- endset -%}\n                {{ include('compose/ListItem.html.twig', {'attrs': og_attrs(['data-slot', 'sections-row']), 'children': c_3}, with_context = false) }}\n              {%- endfor %}\n            {%- endset -%}\n            {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-2 p-0', 'children': c_4}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_5}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/nav-block.html.twig', {'p': {'label': (og_t(v_landmarkLabel) ? og_uniq(og_tpl('{0}, {1}', [v_tocTitle, v_landmarkLabel])) : v_tocTitle), 'className': og_cnv(['md:sticky md:top-4']), 'testid': 'toc'}, 'children': og_markup(c_6)}, with_context = false) }}\n      {%- endif %}\n      {%- set c_11 -%}\n        {%- for v_s in og_l(v_sections) %}\n          {%- set c_10 -%}\n            {%- set c_7 -%}\n              {{ og_text(og_get(v_s, ['title'])) }}\n            {%- endset -%}\n            {{ include('compose/Title.html.twig', {'as': 3, 'size': '2xl', 'weight': 'bold', 'children': c_7}, with_context = false) }}\n            {%- set c_8 -%}\n              {{ og_text(og_get(v_s, ['text'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'base', 'children': c_8}, with_context = false) }}\n            {%- if og_t(og_eq(v_quotes, 'show')) %}\n              {%- if og_t(og_get(v_s, ['quote'])) %}\n                {%- set c_9 -%}\n                  {{ og_text(og_get(v_s, ['quote'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'tag': 'blockquote', 'class': 'm-0 border-l border-border pl-4 text-lg', 'attrs': og_attrs(['data-slot', 'quote']), 'children': c_9}, with_context = false) }}\n              {%- endif %}\n            {%- endif %}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'class': 'flex flex-col gap-4', 'attrs': og_attrs(['id', og_tpl('{0}-{1}', [v_id, og_get(v_s, ['id'])]), 'data-slot', 'item']), 'children': c_10}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '8', 'align': 'stretch', 'class': 'mx-auto w-full max-w-2xl min-w-0', 'attrs': og_attrs(['data-slot', 'article']), 'children': c_11}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '1', 'class': og_s(og_cnv(['items-start gap-8', (og_t(og_eq(v_layout, 'toc')) ? 'md:grid-cols-[14rem_minmax(0,1fr)]' : '')])), 'children': c_12}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_13)}, with_context = false) }}\n",
      "path": "blocks/article-body.html.twig",
      "target": "blocks/article-body.html.twig"
    }
  ],
  "meta": {
    "category": "content",
    "group": "blog",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "article-body",
  "registryDependencies": [
    "box",
    "empty-state",
    "grid",
    "link",
    "list",
    "list-item",
    "nav-block",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Article Body",
  "type": "registry:block"
}
