{# Embeddable Section Component Base section layout with overridable blocks. Use with {% embed %}. Blocks: - title: Section heading (required) - description: Optional description below title - actions: Action buttons in header (optional) - content: Main section content (required) - footer: Section footer (optional) Args (via context): - id: Section ID for anchoring - css_class: Additional CSS classes - heading_level: h2, h3, h4 (default: 'h2') - collapsible: Make section collapsible (default: false) - open: If collapsible, start expanded (default: true) Example: {% embed 'partials/_embeds/section.html' %} {% block title %}Getting Started{% end %} {% block description %}Learn the basics in 5 minutes.{% end %} {% block content %}
  1. Install the package
  2. Configure settings
  3. Run your first build
{% end %} {% end %} Example with actions: {% with id='api-reference', heading_level='h3' %} {% embed 'partials/_embeds/section.html' %} {% block title %}API Reference{% end %} {% block actions %} Download OpenAPI {% end %} {% block content %}

Full API documentation...

{% end %} {% end %} {% end %} #} {% let section_id = id ?? none %} {% let section_class = css_class ?? '' %} {% let section_heading = heading_level ?? 'h2' %} {% let section_collapsible = collapsible ?? false %} {% let section_open = open ?? true %} {% if section_collapsible %}
{% block title %}{% end %} {% block actions %}{% end %} {{ icon('chevron-down', size=16) }} {% block description %}{% end %}
{% block content %}{% end %}
{% block footer %}{% end %}
{% else %}
<{{ section_heading }} class="embed-section-title">{% block title %}{% end %} {% block actions %}{% end %}
{% block description %}{% end %}
{% block content %}{% end %}
{% block footer %}{% end %}
{% end %}