Files
docker-docs/layouts/_default/single.html
David Karlsson 1c6f0ee337 hugo: fix edge case causing duplicate h1 (#17959)
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>
2023-08-22 10:48:51 +01:00

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 }}