{% extends "base.html" %} {# CLI Reference List Template Three-column layout optimized for CLI documentation section index pages: - Left sidebar: Navigation tree - Center: Content + Child page tiles - Right sidebar: TOC + metadata Usage: Set `template: cli-reference/list.html` in frontmatter Or set `type: cli-reference` to auto-select this template Features: - Automatically displays child pages and subsections as tiles - Disable with `show_children: false` in frontmatter #} {% from 'partials/navigation-components.html' import breadcrumbs, page_navigation, toc with context %} {% from 'partials/content-components.html' import tag_list, child_page_tiles with context %} {% block content %} {# Ensure page is set - use section.index_page if page not defined #} {# This is needed for breadcrumbs, sidebar navigation, and content rendering #} {% if not page is defined and section is defined %} {% set page = section.index_page %} {% endif %} {# Three-column documentation layout #}
{# Left Sidebar: Navigation #} {# Main Content #}
{# Action Bar: Breadcrumbs + Share #} {% if page %} {% include 'partials/action-bar.html' %} {% endif %} {# Article Content #}
{# Main content #}
{{ content | safe }}
{# Child page tiles - can be disabled via frontmatter: show_children: false or theme config #} {% set show_children_fm = page.metadata.get('show_children', none) if page else none %} {% set show_children_theme = site.theme_config.config.get('show_children_default', true) %} {% set show_children = show_children_fm if show_children_fm is not none else show_children_theme %} {% if show_children and (posts or subsections) %}
{{ child_page_tiles(posts=posts, subsections=subsections) }}
{% endif %} {# Tags #} {% if page and 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 #}