Files
docker-docs/layouts/_default/single.html
David Karlsson 210ac7bb11 fix: add scroll margin for h1s
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>
2023-11-23 12:27:31 +01:00

18 lines
400 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 }}
{{ .Content }}
</article>
{{ end }}
{{ define "right" }}
{{ partial "aside.html" . }}
{{ end }}