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