mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Some documents are missing a `title` front matter, and instead use an H1 from the document body. This change introduces a fix to render an external h1 only if the front matter field is set. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
18 lines
345 B
HTML
18 lines
345 B
HTML
{{ define "left" }}
|
|
{{ partial "sidebar.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{ partial "breadcrumbs-legacy.html" . }}
|
|
<article class="prose max-w-none dark:prose-invert">
|
|
{{ with .Title }}
|
|
<h1>{{ . }}</h1>
|
|
{{ end }}
|
|
{{ .Content }}
|
|
</article>
|
|
{{ end }}
|
|
|
|
{{ define "right" }}
|
|
{{ partial "aside.html" . }}
|
|
{{ end }}
|