Usage
{{< acc-tab header = "Section Title" [inner = "Section content"] >}}Must be used inside an accordion partial to create collapsible sections
Description
Creates an individual collapsible section within an accordion. Each acc-tab has a clickable header that reveals or hides the content below with smooth animations.
Parameters
indicates required parameter
header =
"string"REQUIRED
The clickable header text for the accordion section (processed with markdownify)
inner =
"string"
The collapsible content of the section (processed with markdownify)
Examples
Basic accordion tab using hw shortcode
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Getting Started">}}
Welcome to our platform! Here's what you need to know:
1. Create your account
2. Set up your profile
3. {{<hw t="include" from="onboarding-steps.md">}}
[Complete setup guide](/setup)
{{</hw>}}
{{</hw>}}Use hw shortcode with standard parameters for consistent functionality
Accordion tab with rich markdown content
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="**API Documentation** - REST Endpoints">}}
## Available Endpoints
### User Management
- `GET /api/users` - List all users
- `POST /api/users` - Create new user
- `PUT /api/users/{id}` - Update user
### Authentication
- `POST /api/auth/login` - User login
- `POST /api/auth/logout` - User logout
**Rate Limiting**: 1000 requests per hour
{{<hw t="caption" header="Note" text="All endpoints require valid API key">}}
{{</hw>}}
{{</hw>}}Headers support markdown for styling and content supports full markdown
Accordion tab with nested partials and tables
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Configuration Options">}}
{{<hw t="table">}}
{{<hw t="thead">}}
{{<hw t="trth">}}Setting{{</hw>}}
{{<hw t="trth">}}Default Value{{</hw>}}
{{<hw t="trth">}}Description{{</hw>}}
{{</hw>}}
{{<hw t="tbody">}}
{{<hw t="tr">}}
{{<hw t="td">}}**timeout**{{</hw>}}
{{<hw t="td">}}`30s`{{</hw>}}
{{<hw t="td">}}Request timeout duration{{</hw>}}
{{</hw>}}
{{<hw t="tr">}}
{{<hw t="td">}}**retries**{{</hw>}}
{{<hw t="td">}}`3`{{</hw>}}
{{<hw t="td">}}Number of retry attempts{{</hw>}}
{{</hw>}}
{{</hw>}}
{{</hw>}}
{{<hw t="banner" header="Important" text="Changes require service restart">}}
{{</hw>}}
{{</hw>}}Combine with other hw partials for complex structured content
Multiple accordion tabs with included content
{{<hw t="accordion">}}
{{<hw t="acc-tab" header="Installation Guide">}}
{{<hw t="include" from="docs/installation.md">}}
{{</hw>}}
{{<hw t="acc-tab" header="Configuration">}}
{{<hw t="include" from="docs/configuration.md">}}
{{</hw>}}
{{<hw t="acc-tab" header="Troubleshooting">}}
{{<hw t="include" from="docs/troubleshooting.md">}}
**Still having issues?**
{{<hw t="block" header="Get Support" src="/images/support.png">}}
Contact our support team for personalized assistance.
- Email: support@example.com
- Live chat: Available 24/7
- Phone: 1-800-SUPPORT
{{</hw>}}
{{</hw>}}
{{</hw>}}Include external files and mix static/dynamic content effectively
Additional Information