adjust title, description order

This commit is contained in:
Karen Bradshaw 2020-06-27 20:59:31 -04:00
parent cd4a6c3333
commit e2dadcf668
2 changed files with 4 additions and 3 deletions

View File

@ -10,8 +10,8 @@
{{ partial "docs/content-page" (dict "ctx" $ "page" $ ) }}
{{ else }}
<h1>{{ .Title }}</h1>
{{ end }}
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ end }}
{{ partial "section-index.html" . }}
</div>
{{ end }}

View File

@ -7,6 +7,7 @@
</p>
{{ if not .page.Params.notitle }}
<h1>{{ .page.Title }}</h1>
{{ $desc := .page.Description }}
{{ with .page.Params.description }}<div class="lead">{{ $desc | markdownify }}</div>{{ end }}
{{ end }}
{{ .page.Content }}