{% 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 %} {% from 'partials/components/related-posts-simple.html' import related_posts_simple %} {# ============================================================================= 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 ?? '' %}
{{ 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_simple(page?.related_posts ?? [], 'Related Posts') }}
{% end %}