{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Four small post cards beside an intro with a view-all link; the first post in detail beside its picture; or cards with the text on a panel over the picture, in two or three columns.",
  "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/post-showcase.json\n    Posts shown off. Axes: layout (intro: four small post cards beside the intro with a view-all link, featured: the first post in detail beside its picture, overlay: cards with the text over the picture), cols (2, 3: overlay columns), mediaSide, tone.\n    Props (p): id, title, lead, badge, posts, labels, action, layout, cols, mediaSide, tone, empty, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_badge = (p.badge ?? '') -%}\n{%- set v_posts = (p.posts ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_action = (p.action ?? null) -%}\n{%- set v_layout = (p.layout ?? 'intro') -%}\n{%- set v_cols = (p.cols ?? '3') -%}\n{%- set v_mediaSide = (p.mediaSide ?? 'start') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_imageAlt = (p.imageAlt ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- if og_t(og_eq(og_len(v_posts), 0)) %}\n  {%- set c_1 -%}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'newspaper', 'title': v_empty}}, with_context = false) }}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_1)}, with_context = false) }}\n{%- elseif og_t(og_eq(v_layout, 'intro')) %}\n  {%- set f_3 -%}\n    {%- set c_4 -%}\n      {%- for v_p in og_l(v_posts) %}\n        {%- set v_i = loop.index0 -%}\n        {%- if og_t(og_lt(v_i, 4)) %}\n          {{ include('blocks/post-mini-card.html.twig', {'p': {'p': v_p, 'labels': v_labels}}, with_context = false) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 gap-4 sm:grid-cols-2', 'children': c_4}, with_context = false) }}\n  {%- endset -%}\n  {%- set c_5 -%}\n    {%- set c_2 -%}\n      {{ og_text(og_get(v_action, ['label'])) }}\n      {{ include('icons/LucideIcon.html.twig', {'name': 'arrow-right', 'size': 16}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Link.html.twig', {'href': og_url(og_s(og_get(v_action, ['href']))), 'size': 'sm', 'attrs': og_attrs(['data-slot', 'section-action']), 'children': c_2}, with_context = false) }}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_3)}, 'children': og_markup(c_5)}, with_context = false) }}\n{%- elseif og_t(og_eq(v_layout, 'featured')) %}\n  {%- set f_6 -%}\n    {{ include('blocks/media-frame.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'src': v_image, 'ratio': '4/3'}}, with_context = false) }}\n  {%- endset -%}\n  {%- set c_7 -%}\n    {%- for v_p in og_l(v_posts) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_lt(v_i, 1)) %}\n        {{ include('blocks/post-feature.html.twig', {'p': {'p': v_p, 'labels': v_labels}}, with_context = false) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_6)}, 'children': og_markup(c_7)}, with_context = false) }}\n{%- else %}\n  {%- set c_9 -%}\n    {%- set c_8 -%}\n      {%- for v_p in og_l(v_posts) %}\n        {%- set v_i = loop.index0 -%}\n        {%- if og_t(og_lt(v_i, (og_t(og_eq(v_cols, '2')) ? 2 : 3))) %}\n          {{ include('blocks/post-overlay-card.html.twig', {'p': {'p': v_p, 'labels': v_labels, 'ratio': (og_t(og_eq(v_cols, '2')) ? '16/9' : '4/3')}}, with_context = false) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_cols, '2')) ? 'grid grid-cols-1 gap-6 md:grid-cols-2' : 'grid grid-cols-1 gap-6 md:grid-cols-3')), 'children': c_8}, with_context = false) }}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/post-showcase.html.twig",
      "target": "blocks/post-showcase.html.twig"
    }
  ],
  "meta": {
    "category": "content",
    "group": "blog",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "post-showcase",
  "registryDependencies": [
    "box",
    "empty-state",
    "link",
    "lucide-icon",
    "media-frame",
    "post-feature",
    "post-mini-card",
    "post-overlay-card",
    "section-frame",
    "utils"
  ],
  "runtime": "twig",
  "title": "Post Showcase",
  "type": "registry:block"
}
