mirror of
https://github.com/docker/docs.git
synced 2026-11-21 14:06:38 +03:00
h1 elements with IDs need a scroll margin to account for the header and margin height. These anchors are linked automatically by Algolia. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
36 lines
868 B
HTML
36 lines
868 B
HTML
{{ define "left" }}
|
|
{{ partial "sidebar.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{ partial "breadcrumbs.html" . }}
|
|
<article class="DocSearch-content prose max-w-none dark:prose-invert">
|
|
{{ with .Title }}
|
|
<h1 id="{{ anchorize . }}" class="scroll-mt-36">{{ . }}</h1>
|
|
{{ 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 }}
|
|
|
|
{{ define "right" }}
|
|
{{ partial "aside.html" . }}
|
|
{{ end }}
|