{% extends "blog/shell.html" %} {# ================================================================================ Blog Home Template (Kida-Native) ================================================================================ Optimized home page template for blog sites. Extends blog/shell.html. FEATURES: - Simplified hero section - Prominent recent posts grid - Auto-discovered blog section - Clean, reading-focused 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 post card component - {% cache %} for recent posts computation USAGE: Set `template: blog/home.html` in home page frontmatter Or set `type: blog` on home page to auto-select ================================================================================ #} {% from 'partials/components/post-card.html' import post_card %} {# ============================================================================= MAIN TEMPLATE ============================================================================= #} {% block blog_content %} {# Template-scoped configuration #} {% let page_title = page?.title ?? config?.title ?? 'Blog' %} {% let page_desc = params?.description ?? '' %} {% let show_recent = params?.show_recent_posts ?? true %} {% let blog_section_name = params?.blog_section ?? 'posts' %}
{{ page_desc }}
{% end %}