{{ post_title }}
{% if post_date %} {% end %} {% if post_desc %}{{ post_desc | truncate(150) }}
{% end %} {{ t('home.read_more', default='Read more') }} {{ icon('arrow-right', size=14, css_class='nav-arrow') }}{% extends "base.html" %}
{#
================================================================================
Site Home Page Template (Kida-Native)
================================================================================
Opinionated marketing landing for the site root. Zero-config: when frontmatter
omits features/CTAs, the template fills in a polished splash from site.title
and site.description — distinct from the generic section index (gallery) layout.
KIDA FEATURES USED:
- {% let %} for template-scoped variables
- Optional chaining (?.) for null-safe access
- Null coalescing (??) for smart defaults
- Pipeline operator (|>) for filter chains
- {% def %} for reusable components
- {% cache %} for recent posts computation
================================================================================
#}
{# =============================================================================
POST CARD COMPONENT
============================================================================= #}
{% def post_card(post) %}
{% let post_meta = post?.metadata ?? {} %}
{% let post_image = post_meta?.image ?? post_meta?.cover ?? '' %}
{% let post_title = post?.title ?? 'Untitled' %}
{% let post_href = post?.href ?? '#' %}
{% let post_date = post?.date %}
{% let post_desc = post_meta?.description ?? post?.excerpt ?? '' %}
{{ post_desc | truncate(150) }} {{ feat_desc }}{{ post_title }}
{% if post_date %}
{% end %}
{% if post_desc %}
{{ feat_title }}
{{ t('home.eyebrow', default='Welcome') }}
{% end %}{{ page_desc }}
{% end %} {% if cta_buttons | length > 0 %}{{ link_desc }}
{% end %} {% end %}