Skip to content

Commit e2dadcf

Browse files
committed
adjust title, description order
1 parent cd4a6c3 commit e2dadcf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

layouts/docs/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
{{ partial "docs/content-page" (dict "ctx" $ "page" $ ) }}
1111
{{ else }}
1212
<h1>{{ .Title }}</h1>
13+
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
1314
{{ end }}
14-
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
1515
{{ partial "section-index.html" . }}
1616
</div>
1717
{{ end }}

layouts/partials/docs/content-page.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</p>
88
{{ if not .page.Params.notitle }}
99
<h1>{{ .page.Title }}</h1>
10+
{{ $desc := .page.Description }}
11+
{{ with .page.Params.description }}<div class="lead">{{ $desc | markdownify }}</div>{{ end }}
1012
{{ end }}
11-
12-
{{ .page.Content }}
13+
{{ .page.Content }}

0 commit comments

Comments
 (0)