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