{% extends "base.html" %} {% from 'partials/navigation-components.html' import breadcrumbs %} {% from 'chirpui/card.html' import resource_card %} {% from 'chirpui/hero.html' import page_hero %} {% from 'chirpui/surface.html' import surface %} {% 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 surface(variant='default', cls='chirp-theme-doc-home__hero') %} {% call page_hero(title=page_title, subtitle=page_desc, variant='editorial', background='solid', cls='chirp-theme-doc-home__header') %} {% slot eyebrow %} {{ breadcrumbs(page) }} {% end %} {% end %} {% 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 %} {{ resource_card( (section?.href ?? section?._path ?? '#') | absolute_url, section?.title ?? 'Untitled', section?.metadata?.description ?? '', top_meta=((section?.pages ?? []) | length) ~ ' page' ~ ('s' if ((section?.pages ?? []) | length) != 1 else '') ) }} {% end %}
{% end %} {% if custom_quick_links | length > 0 %}

Shortcuts

High-signal entry points for common tasks.

{% end %}
{% end %}