Usage
{{< thead [text = "Table header content"] [inner = "Header rows"] >}}Must be used inside a table partial, contains tr partials with header cells
Description
Creates an HTML thead element that contains the header rows of a table. This is where your column headers and any introductory information goes, providing structure and context for your table data.
Parameters
indicates required parameter
text =
"string"
Primary thead content (processed with markdownify)
inner =
"string"
Additional thead content (processed with markdownify)
Examples
Basic table with header row
{{< table >}}
{{< thead >}}
{{< tr >}}
{{< th >}}Name{{< /th >}}
{{< th >}}Position{{< /th >}}
{{< th >}}Department{{< /th >}}
{{< /tr >}}
{{< /thead >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}John Smith{{< /td >}}
{{< td >}}Developer{{< /td >}}
{{< td >}}Engineering{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Table header with styled columns
{{< table >}}
{{< thead >}}
{{< tr >}}
{{< th class="ui center aligned" >}}**Product**{{< /th >}}
{{< th class="ui right aligned" >}}**Price**{{< /th >}}
{{< th class="ui center aligned" >}}**Status**{{< /th >}}
{{< /tr >}}
{{< /thead >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}Widget A{{< /td >}}
{{< td >}}$29.99{{< /td >}}
{{< td >}}Available{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Use CSS classes for alignment and markdown for emphasis
Multi-row header with grouping
{{< table >}}
{{< thead >}}
{{< tr >}}
{{< th txtGrid="3" class="ui center aligned" >}}**Q4 2024 Sales Report**{{< /th >}}
{{< /tr >}}
{{< tr >}}
{{< th >}}Month{{< /th >}}
{{< th >}}Revenue{{< /th >}}
{{< th >}}Growth{{< /th >}}
{{< /tr >}}
{{< /thead >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}October{{< /td >}}
{{< td >}}$45,000{{< /td >}}
{{< td >}}8%{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Use multiple header rows for complex table structures
Header with rich content and links
{{< table >}}
{{< thead >}}
{{< tr >}}
{{< th >}}
**API Endpoints**
[Full Documentation](./api-reference)
{{< /th >}}
{{< th >}}
**Status**
*Updated {{<hw t="include" from="last-update.md">}}*
{{< /th >}}
{{< /tr >}}
{{< /thead >}}
{{< /table >}}Rich markdown content and shortcodes work in headers
Convenient shorthand using trth partial
{{< table >}}
{{< thead >}}
{{< trth >}}Feature{{< /trth >}}
{{< trth >}}Description{{< /trth >}}
{{< trth >}}Status{{< /trth >}}
{{< /thead >}}
{{< tbody >}}
{{< tr >}}
{{< td >}}Authentication{{< /td >}}
{{< td >}}JWT-based user auth{{< /td >}}
{{< td >}}✅ Complete{{< /td >}}
{{< /tr >}}
{{< /tbody >}}
{{< /table >}}Use trth shorthand for simple single-header-cell rows
Additional Information