adjust title, description order
This commit is contained in:
parent
cd4a6c3333
commit
e2dadcf668
|
@ -10,8 +10,8 @@
|
||||||
{{ partial "docs/content-page" (dict "ctx" $ "page" $ ) }}
|
{{ partial "docs/content-page" (dict "ctx" $ "page" $ ) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
|
||||||
{{ partial "section-index.html" . }}
|
{{ partial "section-index.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
</p>
|
</p>
|
||||||
{{ if not .page.Params.notitle }}
|
{{ if not .page.Params.notitle }}
|
||||||
<h1>{{ .page.Title }}</h1>
|
<h1>{{ .page.Title }}</h1>
|
||||||
|
{{ $desc := .page.Description }}
|
||||||
|
{{ with .page.Params.description }}<div class="lead">{{ $desc | markdownify }}</div>{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ .page.Content }}
|
{{ .page.Content }}
|
Loading…
Reference in New Issue