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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user