Move documentation page lead text after the heading

This helps because the lead text follows the page heading on
the section index that links to a page. Consistency helps readability.
This commit is contained in:
Tim Bannister 2020-06-24 22:01:14 +01:00
parent bf05a7cb29
commit e2805d47b5
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
{{ define "main" }}
<div class="td-content">
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ $hasContent := false }}
{{ with .File }}
{{ if ne .Filename "" }}
@ -12,6 +11,7 @@
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ partial "section-index.html" . }}
</div>
{{ end }}