Usage
{{< trth [text = "Header content"] [inner = "Additional content"] >}}Convenience partial that creates a tr row containing a single th cell
Description
A convenience partial that creates an HTML tr element containing a single th element. Perfect for single-column table headers or when you need a quick way to add a header row with one cell.
Parameters
indicates required parameter
text =
"string"
Primary header cell content (processed with markdownify)
inner =
"string"
Additional header cell content (processed with markdownify)
Examples
Simple single-column table headers
{{< table >}}
{{< thead >}}
{{< trth >}}**Configuration Options**{{< /trth >}}
{{< /thead >}}
{{< tbody >}}
{{< trtd >}}Database URL: postgresql://localhost:5432/mydb{{< /trtd >}}
{{< trtd >}}API Key: your-secret-key-here{{< /trtd >}}
{{< trtd >}}Debug Mode: enabled{{< /trtd >}}
{{< /tbody >}}
{{< /table >}}Multiple single-header rows
{{< table >}}
{{< thead >}}
{{< trth >}}**API Endpoints**{{< /trth >}}
{{< trth >}}**Authentication Required**{{< /trth >}}
{{< trth >}}**Rate Limited**{{< /trth >}}
{{< /thead >}}
{{< tbody >}}
{{< trtd >}}/api/users - GET, POST{{< /trtd >}}
{{< trtd >}}/api/orders - GET, POST, PUT, DELETE{{< /trtd >}}
{{< trtd >}}/api/reports - GET{{< /trtd >}}
{{< /tbody >}}
{{< /table >}}Multiple headers can provide layered information structure
Header with rich markdown content
{{< table >}}
{{< thead >}}
{{< trth >}}
**System Status Dashboard**
*Last updated: {{<hw t="include" from="last-update.md">}}*
[View full status](./status)
{{< /trth >}}
{{< /thead >}}
{{< tbody >}}
{{< trtd >}}Database: ✅ Operational{{< /trtd >}}
{{< trtd >}}API Server: ✅ Operational{{< /trtd >}}
{{< trtd >}}CDN: ⚠️ Degraded Performance{{< /trtd >}}
{{< /tbody >}}
{{< /table >}}Rich content including links and dynamic includes work perfectly
Table sections with category headers
{{< table >}}
{{< tbody >}}
{{< trth >}}**Frontend Technologies**{{< /trth >}}
{{< trtd >}}React 18.2 - Component framework{{< /trtd >}}
{{< trtd >}}TypeScript 4.9 - Type safety{{< /trtd >}}
{{< trtd >}}Tailwind CSS 3.2 - Styling{{< /trtd >}}
{{< trth >}}**Backend Technologies**{{< /trth >}}
{{< trtd >}}Node.js 18 - Runtime environment{{< /trtd >}}
{{< trtd >}}Express 4.18 - Web framework{{< /trtd >}}
{{< trtd >}}PostgreSQL 15 - Database{{< /trtd >}}
{{< /tbody >}}
{{< /table >}}Use trth in tbody to create section headers within table content
Documentation table with included content
{{< table >}}
{{< thead >}}
{{< trth >}}
**Getting Started Guide**
{{<hw t="include" from="docs/intro.md">}}
{{< /trth >}}
{{< /thead >}}
{{< tbody >}}
{{< trtd >}}{{<hw t="include" from="docs/installation.md">}}{{< /trtd >}}
{{< trtd >}}{{<hw t="include" from="docs/configuration.md">}}{{< /trtd >}}
{{< trtd >}}{{<hw t="include" from="docs/first-steps.md">}}{{< /trtd >}}
{{< /tbody >}}
{{< /table >}}Dynamic documentation can be included directly in table headers and cells
Additional Information