{% extends "base.html" %} {% from 'partials/theme-primitives.html' import theme_page_header, theme_surface, theme_link_card %} {% block content %} {% let page_title = page?.title ?? config?.title ?? 'Documentation' %} {% let page_desc = params?.description ?? '' %} {% let show_quick_links = params?.show_quick_links ?? true %} {% let custom_quick_links = params?.quick_links ?? [] %} {% let site_sections = site?.sections ?? [] %} {% let doc_sections = site_sections |> selectattr('metadata.type', 'eq', 'doc') |> list %} {% if doc_sections | length == 0 %} {% let doc_sections = site_sections |> selectattr('metadata.content_type', 'eq', 'doc') |> list %} {% end %} {% if doc_sections | length == 0 %} {% let common_names = ['getting-started', 'guides', 'concepts', 'api', 'docs', 'documentation'] %} {% let doc_sections = [] %} {% for name in common_names %} {% let candidates = site_sections |> selectattr('name', 'eq', name) |> list %} {% if candidates | length > 0 %} {% set _ = doc_sections.append(candidates[0]) %} {% end %} {% end %} {% end %}
{% call theme_surface('chirp-theme-doc-home__hero') %} {{ theme_page_header(page_title, page_desc, 'Documentation', breadcrumb_page=page, cls='chirp-theme-doc-home__header') }} {% end %} {% if content and content.strip() %}
{{ content | safe }}
{% end %} {% if show_quick_links and doc_sections | length > 0 %} {% let sorted_sections = doc_sections |> sort(attribute='metadata.weight') |> take(8) %}

Explore

Start with a track that matches your goal.

{% for section in sorted_sections %} {{ theme_link_card( section?.href ?? section?._path ?? '#', section?.title ?? 'Untitled', section?.metadata?.description ?? '', ((section?.pages ?? []) | length) ~ ' page' ~ ('s' if ((section?.pages ?? []) | length) != 1 else ''), cls='chirp-theme-doc-home__card' ) }} {% end %}
{% end %} {% if custom_quick_links | length > 0 %}

Shortcuts

High-signal entry points for common tasks.

{% end %}
{% end %}