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:
parent
bf05a7cb29
commit
e2805d47b5
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue