{% extends "base.html" %}
{% from "partials/learning-index.html" import learning_index %}
{% block content %}
{% let title = page?.title ?? section?.title ?? "Notebooks" %}
{% let description = page?.description ?? section?.description ?? "Executable notes, experiments, and outputs." %}
{% let items = posts ?? pages ?? page?.children ?? section?.pages ?? section?.regular_pages ?? [] %}
{{ learning_index(title, subtitle=description, items=items, content=content, eyebrow="Notebooks", eyebrow_icon="code", item_singular="notebook", empty_title="No notebooks yet", empty_message="Published notebooks appear here.", empty_icon="code", layout="grid", card_kind="notebook", surface="notebook") }}
{% end %}