{{ post_title }}
{% if post_date %} {% end %} {% if post_desc %}{{ post_desc | truncate(150) }}
{% end %} Read more →{% extends "base.html" %}
{#
================================================================================
Site Home Page Template (Kida-Native)
================================================================================
Landing page for the site with hero, features, stats, and recent posts.
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
USAGE:
Auto-selected for site home page (index.html)
================================================================================
#}
{# =============================================================================
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 }}
{{ page_desc }}
{% end %} {% if cta_buttons | length > 0 %}{{ link_desc }}
{% end %} {% end %}