Files
docker-docs/layouts/glossary.html
David Karlsson d5fd0b2f11 site: simplify base templates
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-02-23 17:29:32 +01:00

31 lines
757 B
HTML

{{ define "article" }}
<article class="prose max-w-none dark:prose-invert">
{{ partial "breadcrumbs.html" . }}
{{ with .Title }}
<h1 class="scroll-mt-36">{{ . }}</h1>
{{ end }}
{{ with .Content }}
{{ . }}
{{ end }}
<table>
<thead>
<tr>
<th>Term</th>
<th>Definition</th>
</tr>
</thead>
<tbody>
{{ range $term, $definition := site.Data.glossary }}
<tr>
<td class="not-prose">
<a class="-top-16 relative" name="{{ $term | anchorize }}"></a>
{{ $term }}
</td>
<td>{{ $definition | $.RenderString }}</td>
</tr>
{{ end }}
</tbody>
</table>
</article>
{{ end }}