{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_lead = ($p['lead'] ?? '')}\n{var $v_badge = ($p['badge'] ?? '')}\n{var $v_posts = ($p['posts'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_action = ($p['action'] ?? null)}\n{var $v_layout = ($p['layout'] ?? 'intro')}\n{var $v_cols = ($p['cols'] ?? '3')}\n{var $v_mediaSide = ($p['mediaSide'] ?? 'start')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_empty = ($p['empty'] ?? '')}\n{var $v_image = ($p['image'] ?? null)}\n{var $v_imageAlt = ($p['imageAlt'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{if og_t(og_eq(og_len($v_posts), 0))}\n  {capture $c_1}\n    {=og_include('blocks/empty-state.latte', ['p' => ['icon' => 'newspaper', 'title' => $v_empty]])|noescape}\n  {/capture}\n  {=og_include('blocks/section-frame.latte', ['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)])|noescape}\n{elseif og_t(og_eq($v_layout, 'intro'))}\n  {capture $f_3}\n    {capture $c_4}\n      {foreach og_l($v_posts) as $v_p}\n        {var $v_i = $iterator->counter0}\n        {if og_t(og_lt($v_i, 4))}\n          {=og_include('blocks/post-mini-card.latte', ['p' => ['p' => $v_p, 'labels' => $v_labels]])|noescape}\n        {/if}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-1 gap-4 sm:grid-cols-2', 'children' => (string) $c_4])|noescape}\n  {/capture}\n  {capture $c_5}\n    {capture $c_2}\n      {=og_text(og_get($v_action, ['label']))}\n      {=og_include('icons/LucideIcon.latte', ['name' => 'arrow-right', 'size' => 16])|noescape}\n    {/capture}\n    {=og_include('compose/Link.latte', ['href' => og_url(og_s(og_get($v_action, ['href']))), 'size' => 'sm', 'attrs' => og_attrs(['data-slot', 'section-action']), 'children' => (string) $c_2])|noescape}\n  {/capture}\n  {=og_include('blocks/section-frame.latte', ['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)])|noescape}\n{elseif og_t(og_eq($v_layout, 'featured'))}\n  {capture $f_6}\n    {=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image, 'ratio' => '4/3']])|noescape}\n  {/capture}\n  {capture $c_7}\n    {foreach og_l($v_posts) as $v_p}\n      {var $v_i = $iterator->counter0}\n      {if og_t(og_lt($v_i, 1))}\n        {=og_include('blocks/post-feature.latte', ['p' => ['p' => $v_p, 'labels' => $v_labels]])|noescape}\n      {/if}\n    {/foreach}\n  {/capture}\n  {=og_include('blocks/section-frame.latte', ['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)])|noescape}\n{else}\n  {capture $c_9}\n    {capture $c_8}\n      {foreach og_l($v_posts) as $v_p}\n        {var $v_i = $iterator->counter0}\n        {if og_t(og_lt($v_i, (og_t(og_eq($v_cols, '2')) ? 2 : 3)))}\n          {=og_include('blocks/post-overlay-card.latte', ['p' => ['p' => $v_p, 'labels' => $v_labels, 'ratio' => (og_t(og_eq($v_cols, '2')) ? '16/9' : '4/3')]])|noescape}\n        {/if}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Box.latte', ['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' => (string) $c_8])|noescape}\n  {/capture}\n  {=og_include('blocks/section-frame.latte', ['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)])|noescape}\n{/if}\n",
      "path": "blocks/post-showcase.latte",
      "target": "blocks/post-showcase.latte"
    }
  ],
  "meta": {
    "category": "content",
    "group": "blog",
    "kind": "block",
    "tags": [
      "latte",
      "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": "latte",
  "title": "Post Showcase",
  "type": "registry:block"
}
