{# ============================================================================= page.html — Generic Page Layout (Global Fallback) ============================================================================= This is the "fallback" template in Moosey's Waterfall resolution. When no more specific template is found (no exact match, no singular or plural match), this template is used. It provides: • Left sidebar with sibling navigation (nav_items) • Breadcrumb trail • Title and description from frontmatter • Rendered Markdown content Waterfall Resolution (when visiting /about): 1. Frontmatter override → template: special.html (if set) 2. Exact match → templates/about.html (does not exist) 3. Singular parent → templates/page.html (used! /about -> "page") 4. Plural parent → (skipped) 5. Fallback → templates/page.html (same file) Template Variables: {{ title }} – from frontmatter or derived from URL segment {{ description }} – from frontmatter {{ content }} – Markdown rendered to HTML {{ breadcrumbs }} – list of {"name": str, "url": str} {{ nav_items }} – list of sibling pages in the same content dir {{ mode }} – "development" | "production" | … {{ request }} – FastAPI Request object Extends: layout/base.html ============================================================================= #} {% extends "layout/base.html" %} {% block content %}
{{ description }}
{% endif %}