{% extends "base.html" %} {# Documentation Template Three-column layout optimized for documentation sites: - Left sidebar: Navigation tree - Center: Content - Right sidebar: TOC + metadata Usage: Set `template: doc.html` in frontmatter Or set `type: doc` to auto-select this template #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% from 'partials/content-components.html' import tag_list with context %} {% block content %} {# Three-column documentation layout #}
{# Left Sidebar: Navigation #} {# Main Content #}
{# Breadcrumbs #} {{ breadcrumbs(page) }} {# Article Content #}

{{ page.title }}

{% if page.metadata.get('description', '') %}

{{ page.metadata.get('description', '') }}

{% endif %} {# Document metadata #} {% include 'partials/docs-meta.html' %}
{# Main content #}
{{ content | safe }}
{# Tags #} {% if page.tags %}
{{ tag_list(page.tags) }}
{% endif %}
{# Page navigation (prev/next) at bottom #} {{ page_navigation(page) }}
{# Right Sidebar: TOC + Metadata #} {% if toc_items %} {% endif %}
{# Mobile sidebar toggle button #} {# Sidebar overlay for mobile #} {% endblock %} {# Sidebar toggle functionality is handled by interactive.js #}