Files
2026-10-28 09:17:40 -06:00

24 lines
710 B
HTML

{{/*
A plain table: `headers` (a list) and `rows` (a list of lists). The first
cell of each row is its label. Cells take Markdown.
*/}}
{{ $s := . }}
{{ partial "sections/head.html" $s }}
<div class="table-scroll">
<table class="compare-table">
<thead>
<tr>{{ range $s.headers }}<th scope="col">{{ . }}</th>{{ end }}</tr>
</thead>
<tbody>
{{ range $s.rows }}
<tr>
{{ range $i, $cell := . }}
{{ if eq $i 0 }}<th scope="row">{{ $cell | markdownify }}</th>{{ else }}<td>{{ $cell | markdownify }}</td>{{ end }}
{{ end }}
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ if $s.ctas }}<div class="cta-row mt-2">{{ partial "sections/ctas.html" $s.ctas }}</div>{{ end }}