{% extends "base.html" %} {# Drafter docs customization layer (STUDENT_DOCS_PLAN.md ยง9). - Sets a zone attribute (teach/dev) on the root element from the page's `audience` front-matter, so CSS can restyle those areas site-wide. - Renders the zone banner and the front-matter-driven page header block (page-type badge, level chip, outcome line) above the page content. #} {% block extrahead %} {{ super() }} {%- set audience = page.meta.audience if page and page.meta else None -%} {#- Extend shares the Teach palette (design feedback, 2026-07-26) but keeps no instructor banner: the zone attribute drives colors only. -#} {%- if audience == "T" or (page and page.url.startswith("extend/")) -%} {%- elif audience == "D" -%} {%- endif -%} {%- if page and page.is_homepage -%} {%- endif -%} {% endblock extrahead %} {% block content %} {%- set audience = page.meta.audience if page and page.meta else None -%} {%- if audience == "T" -%}
{%- elif audience == "D" -%} {%- endif -%} {%- set page_type = page.meta.page_type if page and page.meta else None -%} {%- set type_labels = { "tutorial": "Tutorial", "concept": "Concept", "how-to": "How-to", "component": "Reference", "reference": "Reference", "api": "Reference", "example": "Example", "playground": "Playground", "gallery": "Gallery", "error": "Troubleshooting", "troubleshooting": "Troubleshooting", "lesson": "Lesson plan", "misconception": "Misconceptions", "archetype": "Project idea" } -%} {%- set level_labels = { "L1": "First steps", "L2": "Core", "L3": "Advanced", "L4": "Specialized" } -%} {%- if page_type and page_type != "index" -%} {%- endif -%} {{ super() }} {% endblock content %}