{% extends "base.html" %} {# ================================================================================ Generic Page Template (Kida-Native) ================================================================================ Default template for standalone pages. KIDA FEATURES USED: - {% let %} for template-scoped variables - Optional chaining (?.) for null-safe access - Null coalescing (??) for smart defaults - {% def %} for reusable components USAGE: Auto-selected for pages without a specific type ================================================================================ #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation %} {% from 'partials/components/tags.html' import tag_list %} {% from 'partials/components/widgets.html' import random_posts %} {# ============================================================================= RELATED POST CARD COMPONENT ============================================================================= #} {% def related_card(post) %} {% let post_title = post?.title ?? 'Untitled' %} {% let post_href = post?.href ?? '#' %} {% let post_date = post?.date %} {% let post_excerpt = post?.excerpt ?? '' %}

{{ post_title }}

{% if post_date %} {% end %} {% if post_excerpt %}

{{ post_excerpt }}

{% end %}
{% end %} {# ============================================================================= MAIN TEMPLATE ============================================================================= #} {% block content %} {# Template-scoped variables #} {% let page_title = page?.title ?? 'Page' %} {% let page_tags = page?.tags ?? [] %} {% let page_href = page?.href ?? '' %} {% let css_class = params?.css_class ?? '' %}
{# Action Bar: Breadcrumbs + Share #} {% include 'partials/action-bar.html' %}
{{ content | safe }}
{% if page_tags | length > 0 %}
Tags: {{ tag_list(page_tags) }}
{% end %}
{% if toc %} {% end %}
{# Page Navigation (prev/next) #} {{ page_navigation(page) }} {# Related Posts Section #} {% let related = page?.related_posts ?? [] %} {% let related_posts = related[:3] %} {% if related_posts | length > 0 %} {% end %}
{% end %}